Sie sind auf Seite 1von 22

Embedded Development

Using Microchip
Microcontrollers and the CCS
C Compiler
Little Microcontrollers Doing
Big Things with
C

February 9, 2015
Fred Eady

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

AGENDA

CCS C Compiler Components


PIC16F1709 Zero-Cross Detector Configuration
PIC16F1829 Utility Configuration
PIC16F1459 Wireless Comm Configuration

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

CCS C Compiler Components

Pro-Level Optimization
Pre-Processors
Built-in Functions
Peripheral Drivers
CCS Device Libraries
Example Programs
C-Aware IDE

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

Pre-Processors

#FUSES
#use delay
#use rs232
#use spi

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

Built-in Functions

delay_cycles()
delay_ms()
delay_us()
output_low()
output_high()

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

Peripheral Drivers

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

CCS Device Libraries

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

Example Programs

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

C-Aware IDE

Presented by:

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

PIC16F1709 Zero-Cross Detector

Presented by:

10

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

PIC16F1709 Zero-Cross Detector

Presented by:

11

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

PIC16F1709 Zero-Cross Detector

Presented by:

12

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

PIC16F1829 Utility Configuration

Presented by:

13

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

PIC16F1829 Utility Configuration

Presented by:

14

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

PIC16F1829 Utility Configuration

Presented by:

15

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

PIC16F1829 Utility Configuration

Presented by:

16

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

PIC16F1459 Wireless Comm Configuration

Presented by:

17

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

PIC16F1459 Wireless Comm Configuration

Presented by:

18

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

PIC16F1459 Wireless Comm Configuration

Presented by:

19

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

PIC16F1459 Wireless Comm Configuration

Presented by:

20

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

PIC16F1459 Wireless Comm Configuration

Presented by:

21

Embedded Development Using Microchip Microcontrollers and the CCS C


Compiler

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

Presented by:

22

Das könnte Ihnen auch gefallen