Microchip dsPIC Blockset

Discussion area for MATLAB and MPLAB IDE users.

Microchip dsPIC Blockset

Postby EddieM » Wed Jul 26, 2017 5:35 pm

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?

Cheers,

Eddie
EddieM
 
Posts: 1
Joined: Wed Jul 26, 2017 5:21 pm

Return to MATLAB

Who is online

Users browsing this forum: No registered users and 4 guests

cron