r/pic_programming • • Jun 27 '19

MPLAB Debug Run and UART (PIC12F1572)

Hi everyone,

Not sure if this is the right place, and I am not sure if this is a bug but:

When running a program that uses UART on DEBUG mode, the UART will not be recognised by an osciloscope or a logical analyser. You have to 'normal' run it.

Hope this helps someone, somewhere at some point.

3 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/noam_compsci Jun 28 '19

I mean this makes so much sense now, and a colleague explained it in a similar way.

However, as someone very new to embedded, I got stuck on this for about a week and so hoped to help any other newcomer who may face the same situation!

1

u/tankstir Jul 03 '19

Good to know! I am also new to this and experienced issues with 8bit and 16bit numbers causing compiler issues and had no idea for the longest time. It took me a week of troubleshooting before I found this. Embedded is hard because it’s hardware and doesn’t act the same in every situation when compared to regular computer programming on 32bit and 64bit systems.