How Many Bytes Does Float Occupy Inside PIC Microcontroller?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 3K views
Abstr7ct
Messages
21
Reaction score
0

Homework Statement



How many bytes does a variable of float data type occupy in the data memory of PIC microcontroller?



Homework Equations



None


The Attempt at a Solution



All I know, is that float data type has a size of 4 bytes, that's 32 bits. I'm not sure if it occupies the same size inside the data memory of the PIC.
 
Physics news on Phys.org
Abstr7ct said:

Homework Statement



How many bytes does a variable of float data type occupy in the data memory of PIC microcontroller?



Homework Equations



None


The Attempt at a Solution



All I know, is that float data type has a size of 4 bytes, that's 32 bits. I'm not sure if it occupies the same size inside the data memory of the PIC.
There are many different kinds of PIC controllers, ranging from 12-bit, 13-bit, 14-bit, 16-bit, up to 32-bit wide code memory.

I looked at this wikipedia article, and didn't see any mention of floating point op codes, so perhaps floating point operations are done in a kind of fixed-point technique.

I don't have any experience with PIC microcontrollers - most of my assembly experience has been with various Intel x86 chips and some with Motorola 68000 family.