PICcoder.co.uk Forum  


::post new topic::
Re:New to PIC and I2C Help Please
Date: 2007/02/20 21:30 By: dariog Status: User  
Karma: 6  
Posts: 107
graphgraph
Hmm, well, apart from checking Baud Rate and such (could you try sending some plain Chars just to check?), I can see that you're using
"putrsUSART" which expects a CONST ROM CHAR *...
You're OTOH passing it a simple char: this is wrong.
You can either use "putcUSART(x);" to send the "hex" number corresponding to what is read from I2C, or convert that number to a string (maybe using printf()" and then use "putsUSART" (note "r" is missing... in fact you'll be using a CHAR * i.e. a string.)
reply | quote


      Topics Author Date
    emo
New to PIC and I2C Help Please
Ben Rowe 2007/02/01 16:04
    thread link
thread linkthread link Re:New to PIC and I2C Help Please
dariog 2007/02/20 21:30
::post new topic::