tailieunhanh - Interfacing PIC Microcontrollers 4

Interfacing PIC Microcontrollers 4. Explore in detail microcontroller interfacing techniques using the popular PIC 16F877 Work through step-by-step examples interactively using circuit simulation software, supplied as assembly source code Gain the knowledge of a wide range of peripheral devices such as keyboards, displays, sensors and drives and serial communication with other processors, memory and more Use interactive simulation software to design and test circuits. | Interfacing PIC Microcontrollers Bit Label Function Default Enabled Typical 15 None 0 x 0 14 None 0 x 0 13 CP1 Code protection 1 0 1 12 CP0 4 levels 1 0 1 11 DEBUG In-circuit debugging ICD 1 0 0 10 None 1 x 1 9 WRT Program memory write enable 1 1 1 8 CPD EEPROM data memory write protect 1 0 1 7 LVP Low-voltage programming enable 1 1 0 6 BODEN Brown-out reset BoR enable 1 1 0 5 CP1 Code protection CP 1 0 1 4 CP0 repeats 1 0 1 3 PWRTE Power-up timer PuT enable 1 0 0 2 WDTE Watchdog timer WdT enable 1 1 0 1 FOSC1 Oscillator type select 1 x 0 0 FOSC0 RC 11 HS 10 XT 01 LP 00 1 x 1 Default 3FFF RC clock PuT disabled WdT enabled . Typical RC clock 3FF3 RC clock ICD disabled PuT enabled WdT disabled . Typical XT clock 3731 XT clock ICD enabled PuT enabled WdT disabled . Table Configuration bits code protection bits CP1 CP0 disable reads from selected program areas. Program memory may also be written from within the program itself so that data tables or error checking data can be modified. Obviously this needs some care and this option can be disabled via the WRT bit. Data EEPROM may also be protected from external reads in the same way via the CPD bit while internal read and write operations are still allowed regardless of the state-of-the-code protection bits. IN-CIRCUIT DEBUGGING In-circuit debugging ICD allows the program to be downloaded after the chip has been fitted in the application circuit and allows it to be tested with the real hardware. This is more useful than the previous method which requires the chip to be programmed in a separate programmer unit before insertion in its socket on the board. With ICD the chip can be programmed and reprogrammed during debugging while avoiding possible electrical and mechanical damage caused by removal from the circuit. The normal debugging techniques of single stepping breakpoints and tracing can be applied in ICD mode. This allows a final stage of debugging in the prototype hardware where problems with the interaction of

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.