Closed eagl1 closed 3 weeks ago
Hi @eagl1,
Could you share the source code and the workspace file (.pzw)? It is probably some problem with the gpsim interface with PICSimLab.
Hi @eagl1, in your code you don't initialize the ADCON1
register. After reset the ADCON1 = 0
and all ADC input pins are in analog mode (including the REx pins). Initializing the ADCON=0x06
put all pins in digital mode and solve the problem. In the real (and PICSimlab) PIC microcontroller if the pin is configured as output in analog mode it work (but consumes more energy and it is not recommended by datasheet), but it don't work with gpsim.
Hi,
I used the same code and same pin configuration. But it's working with x board but not working with gpboard, here are the photos:
What could be the problem ? I think it's a bug with the gpboard.