Of course, we do not reccomend or support writing directly to the hardware for
any software you're planning to release,
but if you're just going to play around...
I'm pretty sure that the grayscale palette mapping register is still at the same
address, but the format has changed.
Note that you can ONLY change the palette in 2-bit mode. The palette is
hard-coded in 4-bit mode, and cannot be changed.
On old 328 based devices, you can set all 4 pixel values to one of 7 shades of
gray. On EZ devices, pixel value 00 and 11 are
hard coded to be white and black, but you can set the middle two values (01 and
10) to one of 16 shades of gray. You should
download the EZ processor documentation from Motorola for the whole story, but
I think the registers look like this:
Old 328:
struct
{
Word unused1:1;
Word paletteValueA:3;
Word unused2:1;
Word paletteValueB:3;
Word unused3:1;
Word paletteValueC:3;
Word unused4:1;
Word paletteValueD:3;
}
New EZ:
struct{
Byte PaletteValueB:4;
Byte PaletteValueC:4;
}
Note that it used to be a 16 bit word, and now it's an 8-bit byte.
Hope this helps,
Jesse