View previous topic :: View next topic |
Author |
Message |
domdom
Joined: 06 Sep 2006 Posts: 29
|
|
Posted: Sat Mar 24, 2007 11:43 pm |
|
|
Hi PCM programmer,
Did you see the url? what is my problem for my window terminal?
Or may be the code is not working? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Mar 24, 2007 11:59 pm |
|
|
You have a problem with sending serial data to Hyperterminal.
Even if the i2c code produces bad output, you should still see
the text in this printf statement:
Code: | printf("read %c \n\r", data); |
You should see the word "read" in the Hyperterminal window.
I don't see it.
Try this very simple program, just to test if you can talk to PIC
by typing characters into the HyperTerminal window:
http://www.ccsinfo.com/forum/viewtopic.php?t=29538&start=6
Modify the PIC #include file and #use delay() statement
as required to fit your actual hardware.
You shoul be able to type characters and have the PIC send
them back to HyperTerminal, where they are displayed. |
|
|
funmix
Joined: 27 Mar 2007 Posts: 33
|
|
Posted: Sat Mar 31, 2007 11:06 am |
|
|
Hi PCM programmer,
the example you use for master i2c is 16f877a, i changed the 16877A to 18f4520. It doesn't work.
Is there any errata for this chip? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
|