CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 8 matches
CCS Forum Index
Author Message
  Topic: lost int_rda interrupt
redicon

Replies: 5
Views: 9268

PostForum: General CCS C Discussion   Posted: Mon Mar 05, 2012 5:56 pm   Subject: lost int_rda interrupt
Can the int_rda be lost?
I mean:
My program has got 2 interrupts, rs232 and Timer1.

I've got a looping code that executes:

disable_interrupts(INT_TIMER1);
output_a(row-1);
...
  Topic: #use rs232 and set_tris_b
redicon

Replies: 13
Views: 21772

PostForum: General CCS C Discussion   Posted: Thu Mar 01, 2012 7:35 am   Subject: #use rs232 and set_tris_b
New pic, ccs 4.093.
This code works fine:
#include <16F88.h>

#FUSES NOWDT //No Watch Dog Timer
#FUSES INTRC_IO //Internal RC Osc
#FUSES NOPUT //No Power Up Timer
#FUSES NO ...
  Topic: #use rs232 and set_tris_b
redicon

Replies: 13
Views: 21772

PostForum: General CCS C Discussion   Posted: Mon Feb 27, 2012 5:39 am   Subject: #use rs232 and set_tris_b
RF_Developer in TRIS register 0 make pin as output, 1 as input.
This line is wrong
set_tris_b(0b11111011); //PIN_B2 serial input, others output
Because all pin is set as input except B2 th ...
  Topic: #use rs232 and set_tris_b
redicon

Replies: 13
Views: 21772

PostForum: General CCS C Discussion   Posted: Sun Feb 26, 2012 8:49 pm   Subject: #use rs232 and set_tris_b
My version is 4.016, quite old.
  Topic: #use rs232 and set_tris_b
redicon

Replies: 13
Views: 21772

PostForum: General CCS C Discussion   Posted: Sun Feb 26, 2012 5:49 pm   Subject: #use rs232 and set_tris_b
Nothing changes.
If I add "#use rs232" statement the program stop working.

The problem is in set_tris+use rs232 (i've also tried #use fast_io(B), nothing change)
  Topic: #use rs232 and set_tris_b
redicon

Replies: 13
Views: 21772

PostForum: General CCS C Discussion   Posted: Sun Feb 26, 2012 12:57 pm   Subject: #use rs232 and set_tris_b
No hardware problem, my program can blink led well without #use rs232 statement.

Also removing the set_tris function the led starts high. Are you sure that i don't need to set tris?
  Topic: #use rs232 and set_tris_b
redicon

Replies: 13
Views: 21772

PostForum: General CCS C Discussion   Posted: Sun Feb 26, 2012 11:47 am   Subject: #use rs232 and set_tris_b
Here is complete program:
#include <16F88.h>

#FUSES NOWDT //No Watch Dog Timer
#FUSES INTRC_IO //Internal RC Osc
#FUSES NOPUT //No Power Up Timer
#FUSES NOMCLR //Mast ...
  Topic: #use rs232 and set_tris_b
redicon

Replies: 13
Views: 21772

PostForum: General CCS C Discussion   Posted: Sun Feb 26, 2012 11:04 am   Subject: #use rs232 and set_tris_b
Hi to all,
I'm using pic16f88 uart, by code:
#use rs232(baud=9600,xmit=PIN_B5,rcv=PIN_B2,parity=N,bits=8,ERRORS)

I also need to use PIN_B3 as output to control a led.
So I use:
set_tris ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group