Why I haven't posted in three days 2 - My 5 minutes a day #23

Asking for Serial Help


image.png

Again, I realized that I messed up the day of the previous free-write, so I had to fix It here, hence why I jumped from 22 to 23. Well, enough talk, Let's begin:

As I was getting desperate to find a way to simulate a programmer circuit in Proteus, I stumbled over helpful videos that taught me how to use virtual serial ports to connect my Arduino and the Program's interface. For this, I used a Proteus tool called COMPIM, a model that emulates old RS-232 ports, from the RI (Ring alarm) to TXD and RXD, which I would communicate with Arduino's serial pins.

I'd set the communications by connecting TXD to RXD and vice-versa, using Arduino's serial class to bring It to life by setting a baud rate of 9600. Then I'd set the connections between Arduino and the PIC by connecting pins 2 and 7 to PGD and PGC respectively. I'd make sure that the pins affected by the external source for HVP were correctly protected and I'd even use a program to detect the PIC and upload the HEX File. But again, something went wrong.

Then, I had to figure out another way since Proteus was behaving weirdly. Find out about that in the next part!

Thank you for your support and good luck!



0
0
0.000
0 comments