頁首 ALPHA MICROELECTRONICS CORP.
Home English 繁體 簡體 SiteMap | Search

Customer  Service
 
  FAQ

HotLine
TEL: 0755-33033839 TEL: 0755-33033839 TEL: 0755-33033817
Email: sz_webfae#ealpha.com.tw
Please change # to @

AM4E FAQ

Q1.What is EzCode4E?

Q2.For Am4E ICs, how long does it take from IC power-up or Reset to the execution of instructions?

Q3.What is foreground special path?

Q4.What is system path? How to use system path?

Q5.What is special procedure? How to use special procedure?

Q6.Is the PWM in Voice Output and that in PWM Channel the same?

Q7.Why does EzCode4E show that program Rom is sufficient, while in compiling prompt that ROM size is not enough?

Q8.Why does the program reset when several Sdelay instructions are added into the program successively? How to avoid this?

Q9.Can AM4E use crystal oscillator?

Q10.How long is the default Debounce time of EzCode v4.31?


AM4F FAQ

Q1.Which registers I can use in EzCode4F?

Q2.For 4F, how long I need to wait for the reset if I don't clear up the Watch Dog?

Q3.For AM4F, how to clear up the Watch Dog?

Q4.What notices of Random setting I should pay attention to when using EzCode4F v2.x?

Q5.When using Volume (vol1, vol2) in EzCode4F, why the "POCK" sound may occur if the voltage of DAC1 or DAC2 is equal to 0?

Q6.When using cout output and 2 channels for playing in EzCode4F, why I still cannot hear the sound?

Q7.When you need to play midi or voice, how to use Register for index?

Q8.How many maximum channels for action that EzCode4F supports?

Q9.What's the restriction for using IR in EzCode4F?

Q10.For the conditional branch instructions in EzCode4F, for example, "Switch(R0)=[x,p1,p2],p3", how to execute the next commands of paths after jumping to "X" position?


AM8EB FAQ

Q1. How to solve the problem of abnormal resetting of AM8EB051?
1. A large capacitor connected between VDD and GND on PCB board will result in the slow speed of power-on and power-off.
2. If use a main IC to control several AM8EB051 at the same time, the much quicker signals output created by main IC resetting will disturb the AM8EB051 resetting.


Q2.If connect I/O with a dynatron (NPN) to drive relay, and set the I/O as output, the level of relay will change instantly when power on. How to solve this problem?

Q3. Why the device remain consumes power even in Sleep mode?

Q4. If I have set the initial value for TO timer, why the timing is still incorrect?

Q5. When power on or off the relay during installing IC, it will dead halt in most cases. If you try to change another MCU, this phenomenon will disappear. Are this problem caused by the MCU interference?

Q6. How to realize the functions by going through the table list?

Q7. How to realize the indirect addressing?

Q8. How to set the PWM function correctly?

Q9. How to correctly set IR function?

Q10. How to correctly set the Buzzer function?

Q11. How to set the external interrupt?

Q12. How to set the T0?

Q13. How to set the T1?

Q14. How to set the T2?

Q15. When LVR (low voltage reset) is in sleep mode, dose it still consume power?

Q16. What are the differences between LPR (low power reset) and LVR (low voltage reset)?

Q17. How to set the LVR?

Q18. If the set LVR is inaccurate, how to adjust it?

Q19. How many kinds of oscillators that AM8EB supports?

Q20. When use instructions to operate the I/O, what are the operation differences between AM8EB MCU and EMC MCU?

Q21. How to off-line write the application program?



AM4E FAQ


Q1.What is EzCode4E?

A1. EzCode4E is a program tool for AM4E series IC. It integrates such functions as wav, midi, action play, key scan, port output, IR communication, etc, which greatly increases development efficiency.

Back to top

Q2. For Am4E ICs, how long does it take from IC power-up or Reset to the execution of instructions?

A2. About 384ms~512ms. When AM4E acts as the slave IC and powers on, it takes longer than 512ms before the IC can be operated.

Back to top

Q3. What is foreground special path?

A3. During the play of voice, MIDI, action or execution of delay, foreground special path allows you to insert commands (through key press or other means) that can change parameters, I/O or background. After the inserted task is completed, and subsequent instructions can be executed normally. Foreground special path is preceded by the symbol "@_". Tasks involving wait are not allowed, such as delay, play, etc.

Back to top

Q4. What is system path? How to use system path?

A4. System path is specific to EzCode, and is supplied under [Path]. Codes included in system path will be inserted into system program for execution. For example, with "Fourms: r1++", "r1++" will be executed once every 4ms. System path can contain simple tasks only, and conditional instructions or instructions with delay are not allowed. For details, see EzCode4E user manual.

Back to top

Q5. What is special procedure? How to use special procedure?

A5. Special procedure is specific to EzCode. It is supplied in [Procedure] for achieving some special purposes such as masking IO, and inserting codes in the interrupt service routine, etc. EzCode automatically adds the codes in [Procedure] into the system program without needing to declare in [Path].

Back to top

Q6. Is the PWM in Voice Output and that in PWM Channel the same?

A6. They refer to different things. PWM in Voice Output indicates the voice output manner. Two pins on the IC are specifically for this purpose. PWM in PWM Channel indicates the pulses of different duty ratios generated on the output port.

Back to top

Q7. Why does EzCode4E show that program Rom is sufficient, while in compiling prompt that ROM size is not enough?

A7. Data Rom indicates the use of the entire ROM. When Program Rom has not used up, Voice data will be stored immediately behind. If Data Rom is full, no more codes can be stored.

Back to top

Q8. Why does the program reset when several Sdelay instructions are added into the program successively? How to avoid this?

A8. Sdelay is a real time wait. During the waiting period, the WDT is not cleared. So when the delay caused by Sdelay exceeds 4ms, the system may reset upon WDT overflow. To avoid this, you can insert ASM(movaf WDT) among the Sdelay instructions.

Back to top

Q9. Can AM4E use crystal oscillator?

A9. In AM4E series ICs, only those above 20 seconds (AM4EE and AM4EG) support crystal oscillator, others models support RM only. For details, see AM4E user manual.

Back to top

Q10. How long is the default Debounce time of EzCode v4.31?

A10. 40ms.

Back to top


AM4F FAQ


Q1. Which registers I can use in EzCode4F?

A1. For EzCode4F, after finished compiling, you can find a cue column "User RAM" at the bottom right corner. Then you can also find R0~Rx (X is the number) after that. The range of R0~Rx represent the RAM that you can use.

Back to top

Q2. For 4F, how long I need to wait for the reset if I don’t clear up the Watch Dog?

A2. If you select 8MHz oscillator, the waiting time is 64ms, while 16MHz oscillator, the time is 32ms.

Back to top

Q3.For AM4F, how to clear up the Watch Dog?

A3. The address of SFR (0x10) only needs to be read for one time, and then you can clear WDT. For instance, reading the address "movra 0x10", or, "movra int" (The name of SFR 0x10 in EzCode4F).

Back to top

Q4. What notices of Random setting I should pay attention to when using EzCode4F v2.x?

A4. Firstly, you should set the RANDOM and its scope in OPTION. The value of RandomL and RandomH can be modified under the conditions that keys are triggered and in every interval of 4ms. Otherwise, the RandomL and RandomH won't be modified.

Back to top

Q5. When using Volume (vol1, vol2) in EzCode4F, why the “POCK” sound may occur if the voltage of DAC1 or DAC2 is equal to 0?

A5. Since without doing Ramp down when playing, the voltage of DAC1 and DAC2 drops to 0 sharply, which cause the "PO" sound. Vol1 and Vol2 are used to control the output volume of DAC1 and DAC2 respectively. When the voltages of Vol1 and Vol2 are equal to 0, the DAC will be closed. That’s why the speaker occur the sound "PO".

Back to top

Q6. When using cout output and 2 channels for playing in EzCode4F, why I still cannot hear the sound?

A6. Since the AM4F series IC employ 2 channels, you can only use Channe0 and channel1. Under the mode of Cout, the sound can only be output by DAC2. If wrongly using DAC1, there will be no sound.

Back to top

Q7. When you need to play midi or voice, how to use Register for index?

A7. You can use one or 2 registers to index midi and voice playing when using EzCode4F v2.,0 for programming. If the register value is 0, it means the first piece of midi or voice. While if there is sound effect in voice file, you should learn the sequential position of voice according to both info of sound effect and wave. The position of midi or wave has nothing to do with byname.

Back to top

Q8. How many maximum channels for action that EzCode4F supports?

A8. EzCode4F supports a maximum of 8 channels for action.

Back to top

Q9. What's the restriction for using IR in EzCode4F?

A9. 1) You must set the registers for sending and receiving before IR launching. And also you should set the value of registers. 2) Set the number of bit before sending and receiving. For instance, TxIR(8), RxIR(8), means to send or receive 8bit data. 3) You should use the special path name for receiving. Since only if you use the special path name, the program can get back to the previous path for continuing executing when it meets the undesired codes. Plus, before confirmation, you should always use special path name.

Back to top

Q10. For the conditional branch instructions in EzCode4F, for example, "Switch(R0)=[x,p1,p2],p3", how to execute the next commands of paths after jumping to "X" position?

A10. If the program jumps to the "x" place, then program will directly execute the following instructions and paths, namely, the "p3" in example. While, if there is no following path or instruction, the program will scan the bottom keys to find out whether there are other background paths need to be executed, such as, ACTION, MIDI, WAVE, etc. If it still cannot find any paths, it will enter into sleep state.

Back to top


AM8EB FAQ


Q1. How to solve the problem of abnormal resetting of AM8EB051?
1. A large capacitor connected between VDD and GND on PCB board will result in the slow speed of power-on and power-off.
2. If use a main IC to control several AM8EB051 at the same time, the much quicker signals output created by main IC resetting will disturb the AM8EB051 resetting.

A1. You should offer the independent power supply for AM8EB051, and reduce the size of capacitor between VDD and GND.

Back to top

Q2. If connect I/O with a dynatron (NPN) to drive relay, and set the I/O as output, the level of relay will change instantly when power on. How to solve this problem?

A2. To solve it, you should close the pull-up resistor. Since the I/O will become input (not your desired output) when power on, and there is a pull-up resistor linked to I/O. The sudden power-on will generate a high level that causes this phenomenon.

Back to top

Q3. Why the device remain consumes power even in Sleep mode?

Back to top

A3. Although OSC is close when MCU enters into Sleep mode, WDT OSC (if WDT is enable) still works. Therefore, the still working WDT OSC consumes power. On the other hand, all the I/O would keep in the original states even if entering into sleep mode. The floating of Input Port and the loading of Output Port may also create the large current. Please carefully deal with I/O.

Back to top

Q4. If I have set the initial value for TO timer, why the timing is still incorrect?

A4. Since the TO cannot auto reinstall, you need to manually set it in interrupt service subroutine. While T1, T2 can reinstall by itself.

Back to top

Q5. When power on or off the relay during installing IC, it will dead halt in most cases. If you try to change another MCU, this phenomenon will disappear. Are this problem caused by the MCU interference?

A5. Through testing this flawed IC, you could find that all the functions are normal. Besides that, you could also test the control board by EFT, and then see that it can reach 2000V. But when close the relay, it will create the large current and spark, which will result in the IC resetting and dead halt. Thus, this phenomenon is caused by the relay. To solve this problem, you can add a capacitor (473μF) or resistor (510Ω) on the relay. By this way you can get rid of the interference.

Back to top

Q6. How to realize the functions by going through the table list?

A6. There are 2 methods for going through the list as following:
1. Use PCL to go through
BCD EQU 0x10
PORTB EQU 0x6
CONVERT:
MOVR BCD,0
ADDAR 0x2,1
;==========gfedcba
RETIA B‘00111111’ ; "0"
RETIA B‘00000110’ ; "1"
RETIA B‘01011011’ ; "2"
RETIA B‘01001111’ ; "3"
RETIA B‘01100110’ ; "4"
RETIA B‘01101101’ ; "5"
RETIA B‘01111101’ ; "6"
RETIA B‘00000111’ ; "7"
RETIA B‘01111111’ ; "8"
RETIA B‘01101111’ ; "9"

MOVIA 0x1 ;Display‘1’
MOVAR BCD
CALL CONVERT
MOVAR PORTB

2. Use TABLEA to go through
MOVIA MID(DIS_TAB)
SFUN TBHP
MOVIA LOW(DIS_TAB)
ADDAR BCD,0
TABLEA
MOVAR PORTB

DIS_TAB:
;===============gfedcba
DW B‘00000000111111’ ; "0"
DW B‘00000000000110’ ; "1"
DW B‘00000001011011’ ; "2"
DW B‘00000001001111’ ; "3"
DW B‘00000001100110’ ; "4"
DW B‘00000001101101’ ; "5"
DW B‘00000001111101’ ; "6"
DW B‘00000000000111’ ; "7"
DW B‘00000001111111’ ; "8"
DW B‘00000001101111’ ; "9"


Back to top

Q7. How to realize the indirect addressing?

A7. You could take advantage of Indirect Addressing Register (Ro) and Indirect Addressing pointer (R4) to complete it. For example, to delete all data in RAM:
IAR EQU 0x0
FSR EQU 0x4
MOVIA 0x10
MOVAR FSR
Clr_All_RAM_Lp:
CLRR IAR
INCR FSR,1
MOVR FSR,0
ANDIA 0x3F
BTRSS 0x3,2
LGOTO Clr_All_RAM_Lp


Back to top

Q8. How to set the PWM function correctly?

A8. For setting PWM function, please follow the below 5 steps:
1. et the prescaler and clock source
2. Set T1 mode register
3. Set initial value of T1 for counting
4. Set Duty value of PWM
5. Enable PWM
Ex. Creates the PWM signals with pulse width (500us) and duty ratio (50%), the instruction cycle is 1us.
MOVIA 0x01 ;Prescaler modulus: 1:4; the clock source is internal clock
SFUN S2
MOVIA 0x02 ;T1 auto reinstalls, valid in high level
SFUN S1
MOVIA 125D ;500=125*4
SFUN S0
MOVIA 63D ;Duty cycle 50%
SFUN S3
SFUNR S1
IORIA 0x81 ;Enable PWM, begin to count
SFUN S1
When the PWM output is in high level, the hardware will automatically load PWM pulse signals.


Back to top

Q9. How to correctly set IR function?

A9. When you need to set the IR function, please make the conditions meet the following requests:
1. Clock source: 455K or 3.58M
2. IR carrier frequency: 38K or 57K (optional)
3. Valid level: the level is valid in high or low
4. Enable IR
Ex. Clock source, 455K; IR carrier frequency, 35K; Valid level: Low level
MOVIA 0x05
SFUN S6
If you need to enable the large output current, you can change the value of FE register from Bit2 into 1.By this way, the largest current is 40mA.
IOSTR 0xE
IORIA 0x4
IOST 0xE


Back to top

Q10. How to correctly set the Buzzer function?

A10. If you need to use the Buzzer function, please refer to the following steps:
1. Set the prescaler and clock source
2. Set the control register of Buzzer
3. Start up counting
Ex. Set 2K Buzzer signals (assume that the instruction period is 1us)
MOVIA 0x03 ;Prescaler modulus: 1:16; the clock source is internal clock
SFUN S2
MOVIA 0x8C ;Prescaler modulus 1:32
SFUN S5 ;Output frequency=1M/(16*32)
MOVIA 0x1
SFUN S1 ;Start counting


Back to top

Q11. How to set the external interrupt?

A11. If you need the external interrupt function, please refer to the follow steps:
1) Set external INT Pin as input
2) Set interrupt trigger edge设置中断触发沿
3) Set the EIS Bit of system control register as 1
4) Enable external interrupt (EXIE is 1)
5) Enable all interrupts
MOVIA 0x01
IOST 0x6 ;Set it as the input
MOVIA 0xFE
IOST 0xD ;Pull up
MOVIA 0x3
T0MODE ;Falling edge interrupt
MOVIA 0x40
IOST 0xE ;Select INT Pin as external interrupt (when EIS=1, it is the external interrupt pin, otherwise, it is the general IO)
MOVIA 0x4
IOST 0xF ;Enable the external INT interrupt
ENI


Back to top

Q12. How to set the T0?

A12.There are 4 steps for setting T0 timer, please see below:
1) Set prescaler and clock source
2) Set the initial value of timer
3) Enable the T0 interrupt
4) Enable all interrupts
The timing is 1ms, (assume that the instruction period is 1us)
TCC EQU 0x1
IntReq EQU 0xF
MOVIA 0x3 ;Prescaler modulus: 1:16; the clock source is internal clock
T0MODE
MOVIA 193D ;Set the initial value of T0 as 193
MOVAR TCC ;Timing is (256-193)*16=1008us
MOVIA 0x1 ;Enable T0 interrupt
IOST IntReq
ENI ;Enable all interrupts


Back to top

Q13. How to set the T1?

A13. There are 5 steps for setting T0 timer, please see below:
1) Set prescaler and clock source
2) Set the initial value of timer
3) Enable the T1 interrupt
4) Enable all interrupts
5)Start counting
The timing is 1ms, (assume that the instruction period is 1us)
S0 EQU 0
S1 EQU 1
S2 EQU 2
MOVIA 0x3
SFUN S2 ;Prescaler modulus: 1:16; the clock source is internal clock
MOVIA 0x2
SFUN S1 ;Set the auto reinstall mode
MOVIA 63D ;Set the initial value of T1 as 63
SFUN S0 ;Timing is 63*16=1008us
MOVIA 0x80 ;Enable the T1 interrupt
IOST IntReq
ENI ;Enable all interrupts
SFUNR S1
IORIA 0x1 ;Start counting
SFUN S1


Back to top

Q14. How to set the T2?

A14. There are 5 steps for setting T0 timer, please see below:
1) Set prescaler and clock source
2) Set the initial value of timer
3) Enable the T2 interrupt
4) Enable all interrupts
5)Start counting
The timing is 1ms, (assume that the instruction period is 1us)
S9 EQU 9
SA EQU 0xA
SB EQU 0xB
MOVIA 0x3
SFUN SB ;Prescaler modulus: 1:16; the clock source is internal clock
MOVIA 0x2
SFUN SA ;Set the auto reinstall mode
MOVIA 63D ;Set the initial value of T2 as 63
SFUN S9 ;Timing is 63*16=1008us
MOVIA 0x20 ;Enable the T2 interrupt
IOST IntReq
ENI ;Enable all interrupts
SFUNR SA
IORIA 0x1 ;Start counting
SFUN SA


Back to top

Q15. When LVR (low voltage reset) is in sleep mode, dose it still consume power?

A15. The LVR can automatically close when in sleep mode. Therefore, it doesn’t consume power when in sleep mode.

Back to top

Q16. What are the differences between LPR (low power reset) and LVR (low voltage reset)?

A16. LPR mainly offers the lowest working voltage for IC to guarantee its normal working. The lowest voltage is around 1.8V. While the LVR mainly offers the lowest voltage for protecting system. This voltage guarantees that the system has enough power to work, no matter normal or abnormal working. In Configuration Word it provides 6 groups of LVR for you to select (2.0V, 2.6V, 2.8V, 3.2V, 3.6V, 4.3V). You can freely select one of voltage as your desired.

Back to top

Q17. How to set the LVR?

A17. There are 2 steps for setting LVR, please see below:
1) Set LVR Bit as 1.
2) In Configuration Word, you can select your required value of LVR.


Back to top

Q18. If the set LVR is inaccurate, how to adjust it?

A18. Since the process drifts, the LVR of different groups IC are various. If you find that the LVR value is inaccurate, you can micro-adjust the LVR according to the Trim Bit defined in AM8EB_Writer v1.40 datasheet.

Back to top

Q19. How many kinds of oscillators that AM8EB supports?

A19. AM8EB supports 6 kinds of oscillators as following.
IRC:Internal RC Oscillator
EXT-R:External resistor and internal capacitor oscillator
LF:Low frequency oscillator
XT:Standard crystal oscillator
HF:High frequency crystal oscillator
ERC:External RC oscillator


Q20. When use instructions to operate the I/O, what are the operation differences between AM8EB MCU and EMC MCU?

Back to top

A20. For AM8EB, firstly the states of both input and output pins are read. Then it executes the logical operation, finally writes the pins. While for EMC, data are read from the flip-flops of output pins. And the states of I/O are read from input pin. Then it executes the logical operation. Finally writes the pins.

Back to top

Q21. How to off-line write the application program?

A21. For using IntRc, please see the following correct steps:
1) Down load your Bin file to writer Memory1 or Memory2.
2) Download Trim Bit to writer Memory1 or Memory2.
3) Off-line writing
Note: Please avoid reading out program from IC then write it into Memory1 or Memory2.


Back to top


SALES
FAE
Account Registration
FAQ

 
佑華微電子股份有限公司 ALPHA MICROELECTRONICS CORP.
TEL:+886-3-5736660 FAX:+886-3-5736661 Address:9F-1, 295, Sec. 2, Kuang Fu Road, Hsinchu, Taiwan   E-mail: tw_websales@ealpha.com.tw
Best View : 1024x768 Microsoft Internet Explorer 6+                                                      Copyright 2012 All Rights Reserved