• 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.

PIC RAM Declaration

Suraj143

Active Member
I have to declare 200 RAM locations

I'm going to declare like this.
Code:
        cblock
        P1:200
        endc
After that can I load values like this?

Code:
        movlw    .15
        movwf    P100
        movlw    .56
        movwf    P196
Does the RAM names will asign like this P1,P2,...P100,P200 ??

The other problem is, the RAMS comes from 3 banks.

1st 40 bytes from 0C9h-0EF = 40bytes
2nd 80 bytes from 120h-16Fh = 80 bytes
3rd 80 bytes from 1A0h-1EFh = 80bytes
 
Last edited:

Latest threads

EE World Online Articles

Loading

 
Top