by hamid_m » Wed Feb 20, 2008 3:59 pm
by hamid_m
Wed Feb 20, 2008 3:59 pm
Hi Jon and others,
Sorry for my long delay, so I go directly to the subject:
After sending the LUT_MANAGE command to the module replies with a '*' character. so you enter the LUT programing mode.
there are several commands wich will be accepted in this mode. which are listed as follows:
'e' : Erases the LUT
'A' : followed with two other bytes which are the address of the current byte to be read or written.
'R' : Read the contents of the LUT at the current address. Returns 2 bytes.
'w' : Write in the flash buffer at the current Address. Followed with 2 bytes.
'm' : Write the flash buffer into the flash.
'x' : leaves LUT programming mode. a standared Dynamixel return packet is replied.
Note that after completion of each command (except 'R' and 'x') a retund (0x0D) will be replied. to write to the flash, all contents of a sector should be written, else unwritten bytes will be replaced with 0xFF.
'R' and 'w' commands have auto address increment.
Adress Range is only allowed between 0x100 and 0x500. other adresses are translated internally to 0x500.
each color is indexed in the LUT using 12 bits, each 4 presenting one of the channels (Y,Cr,Cb) the result schoud be added with (0x100) to evaluate the right index to flash.
I recommend to read the documents of Bootladers for ATMEGA8 in order to get a better knowledge about the configuration and accessing of the flash.
I would be very glad to here from your experiments with the module. so keep on writing
Best regards,
Hamid.
Hi Jon and others,
Sorry for my long delay, so I go directly to the subject:
After sending the LUT_MANAGE command to the module replies with a '*' character. so you enter the LUT programing mode.
there are several commands wich will be accepted in this mode. which are listed as follows:
'e' : Erases the LUT
'A' : followed with two other bytes which are the address of the current byte to be read or written.
'R' : Read the contents of the LUT at the current address. Returns 2 bytes.
'w' : Write in the flash buffer at the current Address. Followed with 2 bytes.
'm' : Write the flash buffer into the flash.
'x' : leaves LUT programming mode. a standared Dynamixel return packet is replied.
Note that after completion of each command (except 'R' and 'x') a retund (0x0D) will be replied. to write to the flash, all contents of a sector should be written, else unwritten bytes will be replaced with 0xFF.
'R' and 'w' commands have auto address increment.
Adress Range is only allowed between 0x100 and 0x500. other adresses are translated internally to 0x500.
each color is indexed in the LUT using 12 bits, each 4 presenting one of the channels (Y,Cr,Cb) the result schoud be added with (0x100) to evaluate the right index to flash.
I recommend to read the documents of Bootladers for ATMEGA8 in order to get a better knowledge about the configuration and accessing of the flash.
I would be very glad to here from your experiments with the module. so keep on writing
Best regards,
Hamid.