This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DPP, NCONST, near, PEC

Hi all,

(C167; running everything from RAM, copied from flash in the startup-file and then re-mapping the BUSCON's)

Does anybody have a suggestion on how to put DATA in one continuous memory area and CONST+CODE in a second memory area? For instance, segment 1 and 2 for DATA, 3+ for CONST+CODE (leaving seg0 unused)? This way you can easily check the DATA memory and calculate CRC's on the CONST+CODE area.

I'm stuck with the DPP pointers. DPP3 -must- be set to the upper 16KB of the first segement and will then automatically contain NCONST data. If I set DPP0-2 to the rest of segement 0, it will contain NDATA. The other problem is that I -must- put a display buffer in segment 0, because of a PEC transfer to the physical display (also in seg0)...

One solution would be to map the first segment to RAM using BUSCON1 and to also map a higher up region to RAM using BUSCON2, and setting DPP0-DPP2 to the high memory area. But that still leaves DPP3, which results in NCONST data in segement 0, which is more difficult to check...

Any tips would be appreciated.

Regards,
Joost Leeuwesteijn

0