| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
MPD78CP18KB bảng dữ liệu(PDF) 164 Page - NEC |
|
|
|||||||||||||||||||||||||||||
MPD78CP18KB bảng dữ liệu(HTML) 164 Page - NEC |
|
164 / 373 page ![]() CHAPTER 8 ANALOG/DIGITAL CONVERTER FUNCTIONS 146 8.3.5 Example of analog/digital converter program The example of an analog/digital converter program given here stores the A/D conversion values for pins AN0 to AN7 in the memory area from 4000H to 403FH shown in Figure 8-8. Figure 8-8. Memory Map (Store Example of A/D Conversion Result) 4000H 4008H 4010H 4018H 4020H 4028H 4030H 4038H ← AN0 ← AN1 ← AN2 ← AN3 ← AN4 ← AN5 ← AN6 ← AN7 8 0 9 1 A 2 B 3 C 4 D 5 E 6 F 7 In this programming example the A/D converter is set to the scan mode. First, four A/D conversion operations are performed on pins AN0 to AN3, and the AN0 to AN3 conversion results are stored in areas 4000H to 4003H, 4008H to 400BH, 4010H to 4013H, and 4018H to 401BH, respectively. Next, four A/D conversion operations are performed on pins AN4 to AN7, and the AN4 to AN7 conversion results are stored in areas 4020H to 4023H, 4028H to 402BH, 4030H to 4033H, and 4038H to 403BH, respectively. Then, conversion is performed again on pins AN0 to AN3, and the AN0 to AN3 conversion results are stored in areas 4004H to 4007H, 400CH to 400FH, 4014H to 4017H, and 401CH to 401FH, respectively. Finally, conversion is performed on pins AN4 to AN7, and the AN4 to AN7 conversion results are stored in areas 4024H to 4027H, 402CH to 402FH, 4034H to 4037H, and 403CH to 403FH, respectively. An example of a program which repeats the above operations show below. First, the operation flow for initialization is shown in the following flowchart. |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |