lcgamboa / picsimlab

PICsimLab - Programmable IC Simulator Laboratory
GNU General Public License v2.0
455 stars 88 forks source link

PICGenios with PIC18F4580 analog pins improperly configured. #104

Closed abhishekaudupa closed 7 months ago

abhishekaudupa commented 7 months ago

I'm running PICGenios board with PIC18F4580 MCU. I tried to use RA0 pin as analog input but then found that RA0 is not an analog pin in the simulator. (RA0 is analog as per the datasheet of PIC18F4580). I also noticed that RB3 is shown to be an analog pin while it is not multiplexed as an analog pin.

Because of this I'm not able to use Potentiometer 1 on the board.

Summary: RA0 should be an analog multiplexed pin. RB3 should not be an analog multiplexed pin.

Evidence: Check the pin viewer. In this setup, I've setup all analog pins as analog inputs. image

OS: Windows 10.

lcgamboa commented 7 months ago

Hi @abhishekaudupa ,

thank you for reporting the issue. The problem was in Picsim again. It was fixed in commit 11e2d0e.

abhishekaudupa commented 7 months ago

@lcgamboa thank you!