|
Re: TTL port to a serial port on a demo board
Are you using the 18F8520 on your demo board? I think from previous posts you said you were using the 18F452. If this is the case then you need to get rid of all of the functions and variables in Kevin's code that deal with USART2, and then change all of the remaining references to register aliases so they no longer include the 1. The 18F452 only has one USART.
If you haven't done so already, you will also need to add a low-priority interrupt handler and add Kevin's interrupt handler functions to the low-priority handler. You can look at the code he has written to see how to do this. Look at the readme file because it goes over how to use the serial driver to send/receive data.
That cable you got should work fine.
|