Top Banner
16-08-11 1 Microprocessors A practical approach.
23

16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

Dec 30, 2015

Download

Documents

Ross Bailey
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 1

MicroprocessorsA practical approach.

Page 2: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 2

Subjects

Goals for this module Results

Subjects of the module Plans Questions

Page 3: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 3

Goals

Students are able to build, program and document a little microcontroller system.

microcontrollers sensors /actuators

Page 4: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 4

The practice is obligatory

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

Page 5: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 5

Assessment

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.

Page 6: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 6

Responsibilities

The student is responsible for the hard-en software, there are more groups who must use it.

Defects must be reported immediately.

Page 7: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 7

Subjects.

Architecture PIC16F690 Hardware /software practical Delays / Flash led / Digital input /counters Analogue input/ analogue sensors PWM/ motorcontrol Other processes

Page 8: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 8

Subjects week 1

Architecture. PIC16F690 and PIC family

Features Pin out Device overview Memory organisation Clock sources Digital Output

Page 9: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 9

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

Info: www.microchip.com

Page 10: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 10

Page 11: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 11

PIC16 F690

35 instructions

Single-cycle

DC-20 Mhz clock Dc-200ns instruction cycle

8 –level deep stack

Direct indirect relative addressing

Page 12: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 12

PIC16F690 Peripheral Features

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

Page 13: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-1113

Pinout PIC16F690

Page 14: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 14

Device overview

Page 15: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 15

Memory organisationProgram

Page 16: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 16

Memory organisationData

Page 17: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 17

Clock sources

Study microchip technical training:Oscillators

Page 18: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-1118

Digital input/output

Page 19: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 19

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

}

Page 20: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 20

Practical

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

Page 21: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 21

Assignment 1

Install MPLAB Installing CC5x c-compiler Questions, assignments Example program Simulation Test

Page 22: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 22

MPLAB IDE

Page 23: 16-08-111 Microprocessors A practical approach.. 16-08-112 Subjects Goals for this module Results Subjects of the module Plans Questions.

16-08-11 23

Home assignment 1

Connect a LED and resistor to RC4-RC7 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