Can't get 16F15345 to react to serial input.
I modified a test program that earlier worked on 16F15376 (different pins and through RX1)
Am I doing something wrong?
#chip16F15345,16
#defineUSART2_BAUD_RATE115200'#define USART2_BLOCKINGDirPORTAOutDirPORTB.5Incomport=2'added this with no effect, is it needed?Dodata=HSerReceive2'only RX2 available on this chip. Data sheet says on RB5ifdata=64thenPORTA.5=OFFendififdata=65thenPORTA.5=ONendifLoop
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes. I just discovered that and swiftly came back to save you time responding. It now works. I was fiddling for two hours, but then remembered that the manual of microchip has been misleading before. Sorry that I didn't think of that before making my post and thank you for the extremely fast response.
Last edit: Roger Jönsson 2021-04-25
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can't get 16F15345 to react to serial input.
I modified a test program that earlier worked on 16F15376 (different pins and through RX1)
Am I doing something wrong?
Check out the demos,but, you are missing the PPS section. Use PPSTOOL.
Yes. I just discovered that and swiftly came back to save you time responding. It now works. I was fiddling for two hours, but then remembered that the manual of microchip has been misleading before. Sorry that I didn't think of that before making my post and thank you for the extremely fast response.
Last edit: Roger Jönsson 2021-04-25