Page 1 of 1

Microchip dsPIC Blockset

PostPosted: Wed Jul 26, 2017 5:35 pm
by EddieM
Hi Guys,

I'm trying to build a Simulink model for a PIC33 using the microchip blockset. I'm using a PIC33FJ256GP710 and mplab v3.55. I can set digital outputs okay but I'm struggling getting analogue inputs to work. I've debugged the project in MPLAB and I can see the AD1CONx registers getting set correctly but the block always reads zero for the inputs in the buffer. I've tested with a driver someone else wrote themselves and that worked, proving it's not the hardware. Has anybody got any idea what I might be doing wrong?