SX18/28AC Helptext English

Warning !

The Bits in Fuse, FuseX and Deviceword have been modified by Scenix.

Unfortunately the revised version (devicename) bears the same name as the original.

The only way to identify old and new revisions is by examining the date code (datecode).

Datecode Old: yywwxx, Datecode New: Axyywwxx, Ax = AB, AC, .... .

The registermap below is only valid for old revisions.

New revisions are not yet supported by Galep.

 

General Hints:

SX18AC and SX28AC microcontrollers have a Program memory, plus three additional registers: Fuse, FuseX and Deviceword specifying the device configuration.

Fuse: Deviceaddress 0xFFF = Bufferaddress 0x1FFF, 0x1FFE

Bit 11

Bit 10

Bit 9

Bit 8

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

/Turbo

/Sync

/OptionX

/StackX

/IRC

DIV2

DIV1

DIV0

/CP

WDTE

FOSC1

FOSC0

FuseX: Bufferaddress 0x2001, 0x2000

Bit 11

Bit 10

Bit 9

Bit 8

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

Cal2

Device

Cal1

Cal0

res

/CF

BOR1

BOR0

RAM1

RAM0

MEM1

MEM0

Deviceword: ( read only ) Bufferaddress 0x2003, 0x2002

Bit 11

Bit 10

Bit 9

Bit 8

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

<--------------------

SX-Version

-------------------->

RAM1

RAM0

MEM1

MEM0

/Turbo, /Sync, /OptionX, /StackX, /CP, WDTE and /CF can be modified individualy in Optionsmenue.

/IRC, DIV2, DIV1, DIV0, FOSC1, FOSC0 select the oscillator configuration and will be set according to your choice in Optionsmenue

All other Bits should not be modified. If they need to be modified you will need to switch off Use Defaults

SX18AC / SX28AC program memory and config words are 12 bits wide unlike Galep’s 8 bit wide data buffer so Bufferaddress = Deviceaddress * 2.

The upper 4 Bits of odd Buffer addresses (MSB) will be 0 after a READ operation, they are masked off during PROGRAM, VERIFY and BLANKCHECK.


Programming functions:

READ:

Program memory, Fuse, FuseX and Device-Word will be read and stored in the data buffer.

After a READ operation oscillator calibration value, brownout settings, RAM and Memory banks are shown in the Optionsmenue.

BLANKCHECK / VERIFY:

Program memory, Fuse, FuseX will be checked in this order.

Within FuseX only Bit /CF will be checked as the other bits contain device specific settings.

PROGRAM:

First, FuseX and Deviceword are read, after which the device will be erased. After that the device will be programmed.in the order established in program memory, i.e.: FuseX, Fuse with codeprotect disabled, and optional Fuse with codeprotect enabled.

If Use Defaults is active, FuseX will be programmed with the preserved parameters read from FuseX and Device-Word, except for the Bit /CF which will be inserted from the Optionsmenu.

ERASE:

FuseX and Deviceword are read first, after which the device will be erased.

FuseX will be reprogrammed to the preserved parameters read from FuseX and Device word, except for the Bit /CF, which will be set to the un-programmed state.