Keywords: Category:
 
Usage and programming of Rolling Code
TIME: 2010-6-24
 
Usage and programming of Rolling Code
Usage of Rolling Code
It is necessary to distinguish different ICs in some electronics.  For instance, some infrared or RF paired-code products are often distinguished by security codes similar to ID codes in order to keep one-to-one relationship. Therefore one transmission with possible multiple receptions will be entirely avoided.
For Rolling Code instruction provided in AM8E_Writer, based on the user-defined settings, a series of meaningful data will be directly programmed into OTP Program Rom at the time of programming in order to distinguish different ICs.
Ex.
For AM8EB156X, Rolling codes in Program Rom will be displayed by eight common anode seven-segment nixietubes.  The codes in program are 4-bit Rolling Codes with default value of 0x0200 and 0x145.
The following is the hardware circuit diagram as shown in figure 1.
Figure 1
Hardware Circuit Instruction
PA port controls com port of nixietube through audions.  Ports (a~g) of nixietube are respectively connected to PB0-6.  It should be noted that PA5 can be used as a common I/O port after a necessary 10K-resistance pull-high resistor is added.
 
 
Software Instruction
The Rolling code value will be displayed after power-on by using a system clock source (IRC 4MHZ) with a timing time of 2ms.  There are three programs in the content: Rolling Code valuating type of MOVIA in path of asm movia, Rolling Code valuating type of RETIA in path of asm retia and Rolling code valuating type of TABLEA in path of asm table.
For more information on program list, please refer to display and test program of Rolling code: “asm movia\TstRollcode.asm”, “asm retia\TstRollcode.asm” and “asm table\TstRollcode.asm”.
Programming of Rolling Code
Rolling Code has two types.  One is PC-Link mode and the other one is Stand-Alone mode.  The following is the instruction of Rolling Code setting:
(1)   Instruction Type: Application instruction includes types of MOVIA/RETIA and TABLEA.
(a)     MOVIA/RETIA: Modify the constants that are used in MOVIA/RETIA of Program ROM.
(b)    TABLEA: Modify the values in user-programmed constant table of Program ROM.
(2)   Rolling Code Size: Include two settable ranges according to the Instruction Types.
(a)     MOVIA/RETIA: 0x00~0xFFFFFFFF
(b)    TABLEA: 0x00~0x0FFFFFFF
(3)   Insert Value: Indicate the related values that will be inserted into Rolling Code.
(a)     Start Value and End Value: Indicate the variable ranges of values that will be inserted into Rolling Code.
(b)    Current Value: Values that will be inserted into Rolling Code next time.
(c)     Step Value: Current Value added each time.
(d)    Current List: you can configure more than one Current Values and automatically set Step Value as 0. (Only in PC-Link mode).
(4)   Set Current List: Indicate the related configuration to be inputted into Current List.  This function will be enabled by ticking Current List option on the top. (Only in PC-Link mode).
Count refers to the total number of Current Values. Value and Index present the ticked Current Values and the related indexes on Current List interface.  Wherein it is notable that Index starts from 0(Start Value).
The operation can be followed the options below:
(a)     Open File: Firstly enter a hexadecimal value within application instruction setting ranges into file [.txt] and then open this file.  It occurs on the left interface of the opened file.
Note: The hexadecimal value will be automatically adjusted if the set value exceeds the application instruction setting range.
(b)    Add: Simple click on which the numerical value is created on Current List interface, and enter the value to be created in Insert Value box.  And finally the numerical value is created there after such a simple click. ( The insert value will be created at the top of Current List by default if no selection of index.)
(c)     Delete: Select the value to be cleared on Current List interface and clear it by simple click on this function.
(d)    Modify: Select the value to be modified on Current List interface and enter the value you want in Insert Value box.
(e)     Begin Index: Enter an index here on Current List interface, program from the value at the index, and display the value to be inputted into Rolling Code next time and its index in Current Value box.  It is notable that Index starts from 0 (Start Value).
Ex.
Set Current Value as 10, 12, 15, 23, and 56 on the Current List interface.  Wherein if Begin Index=3, Current Value starts from 23 and the next from 56.  And the new cycle starts from 10 again. 
(5) To Address: Set instruction index of Rolling Code inserted.  The count of Addresses set is under the control of selection from Rolling Code Size.  Wherein Address 0~3 respectively present instruction address while Bin Content 0~3 present Address contents.  If Rolling Code is programmed, Current Values will be programmed into the Bin Content specified by Address.
Ex.
When inputting “0300” in Address 0 blank, all the contents of Address “0300” in the current Bin Buffer will be displayed.  However the insertable instruction will be limited according to the option selected according to Instruction Type.  You can only input “0x2EFF” , “0x2FFF” and “0x3FFF” Bin Contents respectively corresponding to types of “MOVIA”, “RETIA” and “TABLEA”.  When the values in Bin Current are not the said ones, Current Value will be impossibly inputted into the specified Bin Content.
(6) OK: After simple click on “OK” button, the system firstly checks whether the settings on input data and option are accord with the contents of file [.bin].  If so, continue to program Rolling Code or download to writer in PC-Link mode for later Rolling Code programming in Stand-Alone mode; if not, the system shows error message.
 
 
 
 
 
 
 
 
 
 
 
Example 1: Select TABLEA Type. Wherein Start Value=0, End Value=0xFFFFFFF, Current Value=0x1450200, Step Value=2.  See figure 2 as below:
                            Figure 2
If Current Value increases from 0x1450200, 0x1450202 to 0xFFFFFFF, the next value will restart from 0(Start Value).  After simple click on “OK” button, the content is updated.  See figure 3 as below:
                                       Figure 3
The significant digit of Bin Content includes 14 bits.  The bit14, bit15 of 0x200 shift left in two bits towards 0x0145 to generate 0x0514 and 0x200.
Example 2: Select RETIA Type. Wherein Start Value=0, End Value=0xFFFFFFF, Current Value=0x1450200, Step Value=2.  See figure 4 as below:
Figure 4
If Current Value increases from 0x1450200, 0x1450202 to 0xFFFFFFF, the next value will restart from 0(Start Value).  After simple click on “OK” button, the content is updated.  See figure 5 as below:
Figure 5
Example 3: Select MOVIA Type.  Wherein Start Value =0, End Value =0xFFFFFFF, Current Value=0x1450200, Step Value=2.  See figure 6 as below:
Figure 6
The Current Value increases from 0x1450200, 0x1450202 to 0xFFFFFFF, and the next value will restart from 0(Start Value).  After clicking “OK“, the updated interface will be shown as figure 7.
Figure 7
The following will show you how to program Rolling Code in PC-Link Mode.
(1)     Open the file [.bin] including Rolling Code to be programmed.
(2)     Select [OperationRolling Code SettingPC Mode] in Toolbar, or click “Auto” and set with the   button next to “Rolling”.
(3)     Click “Instruction Type”.
(4)     Select “Rolling Code Size”.
(5)     Set Start Value, End Value, Step Value and Current Value in Insert Value box or Current List.
(6)     Set value corresponding to Address in “To Address” box.
(7)     Click “OK” to check Rolling Code setting, and then go to Step (8).
(8)     In PC-Link Mode
a)   Select [OperationRolling Code SettingPC Mode] in the Toolbar, and click “Close” button to exit “Rolling Code Setting” window after setting.
b)  You can simultaneously open “Rolling Code Setting” window by clicking “Auto” option. (“Rolling” option can be ticked by setting with the button next to “Rolling” after configuration of “Rolling Code Setting”.)
c)   Select “Auto” and tick the “Rolling” option. (“Program” or “Verify” should be ticked firstly.)
d)  Click “Start” to operate the ticked action.  See figure 8 as below.
Figure 8
The following will show you how to program Rolling Code in Stand-Alone Mode.
(1)     Open the file [.bin] including Rolling Code to be programmed.
(2)     Select [OperationRolling Code SettingAlone Mode] in Toolbar or download to writer, and set with the button next to “Rolling” option.
(3)     Click “Instruction Type”.
(4)     Select “Rolling Code Size”.
(5)     Set Start Value, End Value, Step Value and Current Value in Insert Value box.
(6)     Set value corresponding to Address in “To Address” box.
(7)     Click “OK” to check Rolling Code setting, and then go to Step (8).
(8)     In Stand-Alone Mode:
a)   Click “Close” button to exit “Rolling Code Setting” window.
b)  Download to Writer and tick “Rolling Code” option.
c)   Click “Download” to Writer in “Alone Mode Setting” window.
See figure 9 as below.
Figure 9
ORIGIN: ice
BACK TO TOP PRINT ADD TO FAVORITE SUBMIT CLOSE
 
>>
 OTHERS
 
·Application Note of Recording Modes (EzCode4...
·Using Midi Background
·How to Use General I/O to Drive LCD?
·The Application of One Key One Note
·Making an LED fan by ALPHA MCU
·Using ALPHA IC in Serial Communication
·Application of the Action Function
·Using AM8EB for I2C Communication
 
>>
 RECOMMENDED
 
·About the Recording Duration of AMSR Series ...
·EzCode4E Solutions
·Application Note of Recording Modes (EzCode4...
·Using Midi Background
·The Control of Silicon Controlled Rectifier
·The Application of One Key One Note
·Portamento Effect in AM4F
 
 

About Us Contact Us Disclaimer


ICP Record : 08035793 Prepared Guangdong ICP