Hi everyone!
I'm a newbie with Flowcode 8 and I would like to know how to use the TIM (Temperature Indicator Module) of the PIC10F322.
When I search in the menu "sensor -> temperature" , I don't find any "internal temperature" component.
PIC10F322 Datasheet link :
http://ww1.microchip.com/downloads/en/D ... 01585D.pdf
Chap.14 : TIM
PIC10F322 - TEMPERATURE INDICATOR MODULE usage
Moderator: Benj
-
- Posts: 17
- Joined: Thu Apr 30, 2020 7:43 pm
- Has thanked: 15 times
- Been thanked: 3 times
- Contact:
PIC10F322 - TEMPERATURE INDICATOR MODULE usage
Windows 10.0.18362.778
Flowcode v8.2.2.15 (2020-02-28)
Flowcode v8.2.2.15 (2020-02-28)
-
- Valued Contributor
- Posts: 657
- Joined: Fri Jun 06, 2014 3:53 pm
- Has thanked: 184 times
- Been thanked: 203 times
- Contact:
Re: PIC10F322 - TEMPERATURE INDICATOR MODULE usage
Hi
Welcome to the forum, a great place to be.
I'm not the greatest of experts but chip in when I can and I'm sure others with better knowledge will jump in too.
This (internal) feature, senses the temperature of the die itself (not ambient temp of room) and provides this to the ADC for processing. There isn't a component for this that I can see but maybe Matrixtsl will create one if you ask them really nicely <s>
You would need to use some C-code blocks to access/set associated registers (not too difficult you just need to understand the format) and datasheet sections 14 / 15 / 12 will assist, then read the value whenever you wish to know the temperature.
A search of the forum / wiki will give advice on setting / accessing registers. For example to set the oscillator to 8MHz you would use a C-code block and enter OSSCON=0x60; where OSSCON is the register and 0x60 is the hex value of the bits (see page 26 of datasheet), and don't forget to end with a semicolon.
Tomorrow if I get time I'll look at actually doing the above to read the temp.
Regards
Welcome to the forum, a great place to be.
I'm not the greatest of experts but chip in when I can and I'm sure others with better knowledge will jump in too.
This (internal) feature, senses the temperature of the die itself (not ambient temp of room) and provides this to the ADC for processing. There isn't a component for this that I can see but maybe Matrixtsl will create one if you ask them really nicely <s>
You would need to use some C-code blocks to access/set associated registers (not too difficult you just need to understand the format) and datasheet sections 14 / 15 / 12 will assist, then read the value whenever you wish to know the temperature.
A search of the forum / wiki will give advice on setting / accessing registers. For example to set the oscillator to 8MHz you would use a C-code block and enter OSSCON=0x60; where OSSCON is the register and 0x60 is the hex value of the bits (see page 26 of datasheet), and don't forget to end with a semicolon.
Tomorrow if I get time I'll look at actually doing the above to read the temp.
Regards
-
- Posts: 17
- Joined: Thu Apr 30, 2020 7:43 pm
- Has thanked: 15 times
- Been thanked: 3 times
- Contact:
Re: PIC10F322 - TEMPERATURE INDICATOR MODULE usage
Thanks for your reply chipfryer27
Knowing that a 8-bit PIC µC doesn't heat a lot, I think that getting the die temperature shoudn't be very different than getting the ambiant temperature.
Is there a place in the forum to ask new feature request ?
Regards
Knowing that a 8-bit PIC µC doesn't heat a lot, I think that getting the die temperature shoudn't be very different than getting the ambiant temperature.
Is there a place in the forum to ask new feature request ?
Regards
Windows 10.0.18362.778
Flowcode v8.2.2.15 (2020-02-28)
Flowcode v8.2.2.15 (2020-02-28)
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: PIC10F322 - TEMPERATURE INDICATOR MODULE usage
HereDeeJayOne wrote:Is there a place in the forum to ask new feature request ?
That would depend on how many LED's or similar loads driving at once + osc speed.DeeJayOne wrote:Knowing that a 8-bit PIC µC doesn't heat a lot,
Last edited by medelec35 on Fri May 01, 2020 11:50 pm, edited 1 time in total.
Reason: Corrected spelling.
Reason: Corrected spelling.
Martin
-
- Posts: 17
- Joined: Thu Apr 30, 2020 7:43 pm
- Has thanked: 15 times
- Been thanked: 3 times
- Contact:
Re: PIC10F322 - TEMPERATURE INDICATOR MODULE usage
Of course !!!medelec35 wrote:That would depend on how many LED's or simulator loads driving at once + osc speed.DeeJayOne wrote:Knowing that a 8-bit PIC µC doesn't heat a lot,
I like Low Power system applications : LOW POWER = LESS HEAT, LESS POLUTION -> ECO FRIENDLY
Windows 10.0.18362.778
Flowcode v8.2.2.15 (2020-02-28)
Flowcode v8.2.2.15 (2020-02-28)
-
- Valued Contributor
- Posts: 657
- Joined: Fri Jun 06, 2014 3:53 pm
- Has thanked: 184 times
- Been thanked: 203 times
- Contact:
Re: PIC10F322 - TEMPERATURE INDICATOR MODULE usage
Hi
Sorry for the delay in replying again, I got caught up with some other issues.
I've just checked and I don't actually have any chips with that feature. I was sure I did but..... Anyway, until I get some I won't be of much help but I'm sure the rest of the community will help with any questions.
Regards
Sorry for the delay in replying again, I got caught up with some other issues.
I've just checked and I don't actually have any chips with that feature. I was sure I did but..... Anyway, until I get some I won't be of much help but I'm sure the rest of the community will help with any questions.
Regards