dn_cec_ccs_c_compiler_day1.ppt
TRANSCRIPT
![Page 1: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/1.jpg)
Presented by:
Embedded Development Using Microchip
Microcontrollers and the CCS C Compiler
February 9, 2015Fred Eady
Little Microcontrollers Doing Big Things with C
![Page 2: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/2.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
2
AGENDA
CCS C Compiler Components PIC16F1709 – Zero-Cross Detector Configuration PIC16F1829 – Utility Configuration PIC16F1459 – Wireless Comm Configuration
![Page 3: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/3.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
3
CCS C Compiler Components
Pro-Level Optimization Pre-Processors Built-in Functions Peripheral Drivers CCS Device Libraries Example Programs C-Aware IDE
![Page 4: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/4.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
4
Pre-Processors
#FUSES #use delay #use rs232 #use spi
![Page 5: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/5.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
5
Built-in Functions
delay_cycles() delay_ms() delay_us()
output_low() output_high()
![Page 6: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/6.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
6
Peripheral Drivers
![Page 7: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/7.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
7
CCS Device Libraries
![Page 8: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/8.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
8
Example Programs
![Page 9: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/9.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
9
C-Aware IDE
![Page 10: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/10.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
10
PIC16F1709 – Zero-Cross Detector
![Page 11: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/11.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
11
PIC16F1709 – Zero-Cross Detector
![Page 12: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/12.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
12
PIC16F1709 – Zero-Cross Detector
![Page 13: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/13.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
13
PIC16F1829 – Utility Configuration
![Page 14: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/14.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
14
PIC16F1829 – Utility Configuration
![Page 15: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/15.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
15
PIC16F1829 – Utility Configuration
![Page 16: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/16.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
16
PIC16F1829 – Utility Configuration
![Page 17: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/17.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
17
PIC16F1459 – Wireless Comm Configuration
![Page 18: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/18.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
18
PIC16F1459 – Wireless Comm Configuration
![Page 19: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/19.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
19
PIC16F1459 – Wireless Comm Configuration
![Page 20: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/20.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
20
PIC16F1459 – Wireless Comm Configuration
![Page 21: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/21.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
21
PIC16F1459 – Wireless Comm Configuration
![Page 22: DN_CEC_CCS_C_Compiler_Day1.ppt](https://reader035.vdocuments.mx/reader035/viewer/2022062410/55cf8e60550346703b918657/html5/thumbnails/22.jpg)
Presented by:
Embedded Development Using Microchip Microcontrollers and the CCS C Compiler
22
Day 1 Wrap
You experienced using the CCS C Compiler
You can safely sense Zero-Cross events
The PIC16F1829 is your friend You had a taste of the PIC16F1459