It is currently 23 Feb 2019 14:33

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 12 Dec 2018 01:41 
Offline

Joined: 29 Mar 2017 21:19
Posts: 20
I've likely missed something simple but so far with both the LM35 and ADC examples on a fusion v7 neither of them will work.
They work fine with the 512L chip so it's not the board.

First thing tried was changing AD1PCFG to ANSEL and also the port direction as appropriate.
It still reads 0 on the LM35 example and does not change the port d leds in the ADC example.
I'd hate to kill a port by mis-configuring and exceeding voltage levels.

BTW, the DS1820 digital temp works great with minor changes:
ANSELA = 0;   //EFH144 A ports as digital
TRISA = 0;   //EFH144 configure A ports as outputs
//AD1PCFG = 0xFFFF;            // Configure AN pins as digital I/O - comment this out


Has anyone gotten ADC or LM35 to work with a P32MZ2048EFH144 chip?
Thanks

_________________
Windows 7 64 bit
EasyPIC Fusion v7 with PIC32MZ2048EFH144
MRAM Click, Riverdi Click with 7" TFT


Top
 Profile  
 
PostPosted: 16 Jan 2019 15:45 
Offline
User avatar

Joined: 05 Mar 2018 09:44
Posts: 564
Location: Belgrade
Hi Colin,

I apologize for the late reply.

Here's the updated ADC library for PIC32MZ MCU and the ADC example for the PIC32MZ2048EFH144 that works.

Put the library in the Uses sub folder in the mikroC PRO for PIC32 installation folder and recompile the example.

Kind regards,
Petar


Attachments:
PIC32MZ2048EFH144_ADC.7z [222 KiB]
Downloaded 17 times
Top
 Profile  
 
PostPosted: 21 Jan 2019 21:25 
Offline

Joined: 29 Mar 2017 21:19
Posts: 20
No worries about a late reply, I was able to get most of the stuff working with the MX795 chip so testing and learning wasn't delayed.
It will be nice to set it up on the more capable EFH144 chip though.
Thanks again!

_________________
Windows 7 64 bit
EasyPIC Fusion v7 with PIC32MZ2048EFH144
MRAM Click, Riverdi Click with 7" TFT


Top
 Profile  
 
PostPosted: 22 Jan 2019 12:08 
Offline
User avatar

Joined: 05 Mar 2018 09:44
Posts: 564
Location: Belgrade
Hi Colin,
You're welcome,
Kind regards,
Petar


Top
 Profile  
 
PostPosted: 19 Feb 2019 18:55 
Offline

Joined: 19 Feb 2019 18:33
Posts: 2
Hello
I have same problem I purshed easypic v7 with mcu pic32mz2048ech144
I have problem in using UART port to communicate with computer so please I need help.
:oops:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: