View previous topic :: View next topic |
Author |
Message |
boulder
Joined: 15 Mar 2008 Posts: 53
|
putc() |
Posted: Tue Sep 09, 2008 3:02 pm |
|
|
Hi,
I am using PIC16F886 with PCM compiler. Does putc() check transmit buffer status before transmitting data? If not, is there a function to check transmit buffer status.
Thanks. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Sep 09, 2008 3:10 pm |
|
|
You can easily determine this by looking at the .LST file, which is created
when you successfully compile a file. If you want the listing to display
register names (instead of register addresses) , you can set this in the
compiler options. In MPLAB you can do this by going to Project /
Build Options / List File, and then select "Symbolic Format".
Also, see this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=22649&highlight=putc+block |
|
|
boulder
Joined: 15 Mar 2008 Posts: 53
|
|
Posted: Tue Sep 09, 2008 3:34 pm |
|
|
Yes, it checks transmit buffer. Thanks.
Code: |
.................... putc(data);
003B: MOVF data,W
003C: BTFSS PIR1.TXIF
003D: GOTO 03C
003E: MOVWF TXREG
|
|
|
|
|