PowerPoint-presentatie

Download Report

Transcript PowerPoint-presentatie

Microprocessors
A practical approach.
16-08-11
1
Subjects





16-08-11
Goals for this module
Results
Subjects of the module
Plans
Questions
2
Goals


16-08-11
Students are able to build, program
and document a little
microcontroller system.
microcontrollers sensors
/actuators
3
The practice is obligatory




16-08-11
Attending the practical lessons is
obligatory.
Not possible to attend the practice?
contact dhr Stokkink
Failing to attend more then 2
practical lessons, there will be no
grade!
During the practical lessons the
logbook will be assessed
4
Assessment



16-08-11
The logbook will be looked at as an
assessment
Home-orders will be assessed
sufficient or insufficient.
All home-orders must be sufficient
in the end.
5
Responsibilities


16-08-11
The student is responsible for the
hard-en software, there are more
groups who must use it.
Defects must be reported
immediately.
6
Subjects.







16-08-11
Architecture PIC16F690
Hardware /software practical
Delays / Flash led /
Digital input /counters
Analogue input/ analogue sensors
PWM/ motorcontrol
Other processes
7
Subjects week 1







16-08-11
Architecture. PIC16F690 and PIC
family
Features
Pin out
Device overview
Memory organisation
Clock sources
Digital Output
8
Pic Family
8 /16 bits microcontrollers
Flash OTP ROM/Romless
0.5k – 256k memory size
6-100 pins
PIC 10, PIC 12, PIC 16,
PIC18, PIC24, PIC32 families
RfPic en Dspic30
DSPIC33 families
16-08-11
Info: www.microchip.com
9
16-08-11
10
PIC16 F690
35 instructions
Single-cycle
DC-20 Mhz clock Dc-200ns instruction cycle
8 –level deep stack
Direct indirect relative addressing
16-08-11
11
PIC16F690 Peripheral Features









16-08-11
17 I/O pins
Analogue comparators
10 bit ADC / 12 channels
3 timers 8/16 bits
10 bit PWM max 20kHz
Serial Port SPI and I2C
USART module (RS232 RS485)
4k Flash words Program memory
256 bytes SRAM / 256 bytes EEPROM
12
Pinout PIC16F690
16-08-11
13
Device overview
16-08-11
14
Memory organisation
Program
16-08-11
15
Memory
organisation
Data
16-08-11
16
Clock sources
16-08-11
Study microchip technical
training:Oscillators
17
Digital input/output
16-08-11
18
Digital pin configuration and
on/off
void DS1(void)
{
PORTC=0;
//reset PORTC latches
TRISC=0b11110000; //RC0-RC3
//output else High impedance
PORTC.0=1; //RC0 High
16-08-11
}
19
Practical





16-08-11
Each week an introductory assignment
At the beginning of the week the home
assignment must be shown on the test
board. Is must be through a flowchart and
the program in your logbook.
Software is free at www.microchip.com
en
http://www.bknd.com/cc5x/
Download datasheets and bring them to
the lessons.
Assignments can be found at
http://lesmateriaal.saxion.nl/stk
20
Assignment 1






16-08-11
Install MPLAB
Installing CC5x c-compiler
Questions, assignments
Example program
Simulation
Test
21
MPLAB IDE
16-08-11
22
Home assignment 1


16-08-11
Connect a LED and resistor to RC4RC7 and test each LED with a
program
Make a program and simulate, that
has a function to give a value 0-255
to the LED’s
23