| поискавой системы для электроныых деталей |
|
4513 датащи(PDF) 43 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
4513 датащи(HTML) 43 Page - Renesas Technology Corp |
|
43 / 97 page ![]() 42 4513/4514 Group SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER MITSUBISHI MICROCOMPUTERS Fig. 28 Setting registers 0 ✕✕ 1 (Bit 3) (Bit 0) A-D control register Q2 AIN4 function selected A-D conversion mode A-D control register Q1 AIN4 pin selected ✕ 100 (Bit 3) (Bit 0) ✕ : Set an arbitrary value (8) A-D conversion timing chart Figure 27 shows the A-D conversion timing chart. Fig. 27 A-D conversion timing chart (9) How to use A-D conversion How to use A-D conversion is explained using as example in which the analog input from P40/AIN4 pin is A-D converted, and the high- order 4 bits of the converted data are stored in address M(Z, X, Y) = (0, 0, 0), the middle-order 4 bits in address M(Z, X, Y) = (0, 0, 1), and the low-order 2 bits in address M(Z, X, Y) = (0, 0, 2) of RAM. The A-D interrupt is not used in this example. ➀ After selecting the AIN4 pin function with the bit 0 of the register Q2, select AIN4 pin and A-D conversion mode with the register Q1 (refer to Figure 28). ➁ Execute the ADST instruction and start A-D conversion. ➂ Examine the state of ADF flag with the SNZAD instruction to de- termine the end of A-D conversion. ➃ Transfer the low-order 2 bits of converted data to the high-order 2 bits of register A (TALA instruction). ➄ Transfer the contents of register A to M (Z, X, Y) = (0, 0, 2). ➅ Transfer the high-order 8 bits of converted data to registers A and B (TABAD instruction). ➆ Transfer the contents of register A to M (Z, X, Y) = (0, 0, 1). ➇ Transfer the contents of register B to register A, and then, store into M(Z, X, Y) = (0, 0, 0). ADST instruction A-D conversion completion flag (ADF) 62 machine cycles DAC operation signal |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |