Page 1 of 1

Enabling A Register On A Pic

Posted: Sat Jul 22, 2017 3:34 pm
by Sparkoids
Does anyone know please how to actually enable registers on devices to use in Flowcode please?

I am trying to enable the Temperature Indicator Module on a PIC12(L)1571 and just don't know how to do it.

I want to be able to get the temperature into a Macro to check surface temperature of the device.

Here is the page from the data sheet - all ideas gratefully received!

Re: Enabling A Register On A Pic

Posted: Sat Jul 22, 2017 3:36 pm
by Sparkoids
Datasheet page here

Re: Enabling A Register On A Pic

Posted: Sun Jul 23, 2017 12:06 am
by Kenrix2
I made an experimental internal temperature macro but, it is written in V5.
http://www.flowcode.co.uk/mmforums/viewt ... ure#p57003

Here it is converted to V7 but, I have not tested it. Maybe a starting point for you though. Good luck.
ChipTemp.FCM
(3.23 KiB) Downloaded 387 times

Re: Enabling A Register On A Pic

Posted: Mon Jul 24, 2017 4:19 pm
by Sparkoids
Thank you very much indeed - I'll give it a shot...

:-}

Re: Enabling A Register On A Pic

Posted: Thu Jul 27, 2017 4:14 pm
by johnsondav
Hi Sparkoids

If you don't have any luck with the component, I would like to give it try and make one for FC7. I have had a look at the base CAL for FC7, it appears to allow you to get access to all of the channels for the ADC block.
Let me know if you're interested.

Dave