View previous topic :: View next topic |
Author |
Message |
Function usb_putc()? Guest
|
usb connection |
Posted: Wed Mar 18, 2009 4:16 am |
|
|
For eg, if i only want to send data (digital or any integer) to laptop through USB, should i use usb_putc in my code? The data is from circuit, eg from a switch and when the switch is on, high (1) signal will send to PIC.
Please give me hints, thanks!!! |
|
![](templates/subSilver/images/spacer.gif) |
Guest
|
|
Posted: Wed Mar 18, 2009 4:51 am |
|
|
Another question: putc () sends character to the buffer, what the character here mean? Is digital signal or any integer number also can be considered as character? Thanks for reply...... |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah Guest
|
|
Posted: Wed Mar 18, 2009 9:23 am |
|
|
A 'character', is an 8 bit binary value.
Can be the ASCII representation of a number, text, or a number itself. What you do _with_ characters, is 'up to you'.
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
|