Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

any limit to CBLOCK variables?

Status
Not open for further replies.

skyrock

New Member
Is there any limitation to the numbers of cblock variables you can define?

where does cblock 0x20 points to actually?
 
i can see from the spec that 16f628 has 224bytes available ram. does it mean I set a total of 224 variables? or does the RAM also shares something else? do constants go in RAM too?
 
skyrock said:
i can see from the spec that 16f628 has 224bytes available ram. does it mean I set a total of 224 variables? or does the RAM also shares something else? do constants go in RAM too?

Look at the 628 datasheet,page 14... www.microchip.com
 
blueroomelectronics said:
The 16F are bank switched into 4 banks plus 8 bytes RAM that share all banks.

Evening Bill,
Should that be 16 bytes at 7FH.?
 
blueroomelectronics said:
Morning Eric ;), you're right 16 bytes starting at 70H

Hi Bill,
Being a smart ar*se, I also missed out a couple of words... typo

70 to 7F...:(
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top