1 / 23

16-08-11

Microprocessors A practical approach. 16-08-11. 1. Subjects. Goals for this module Results Subjects of the module Plans Questions. 16-08-11. 2. Goals. Students are able to build, program and document a little microcontroller system. microcontrollers sensors /actuators. 16-08-11. 3.

katy
Download Presentation

16-08-11

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MicroprocessorsA practical approach. 16-08-11 1

  2. Subjects • Goals for this module • Results • Subjects of the module • Plans • Questions 16-08-11 2

  3. Goals • Students are able to build, program and document a little microcontroller system. • microcontrollers sensors /actuators 16-08-11 3

  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 16-08-11 4

  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. 16-08-11 5

  6. Responsibilities • The student is responsible for the hard-en software, there are more groups who must use it. • Defects must be reported immediately. 16-08-11 6

  7. Subjects. • Architecture PIC16F690 • Hardware /software practical • Delays / Flash led / • Digital input /counters • Analogue input/ analogue sensors • PWM/ motorcontrol • Other processes 16-08-11 7

  8. Subjects week 1 • Architecture. PIC16F690 and PIC family • Features • Pin out • Device overview • Memory organisation • Clock sources • Digital Output 16-08-11 8

  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 16-08-11 9

  10. 16-08-11 10

  11. 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

  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 16-08-11 12

  13. Pinout PIC16F690 16-08-11 13

  14. Device overview 16-08-11 14

  15. Memory organisationProgram 16-08-11 15

  16. Memory organisationData 16-08-11 16

  17. Clock sources Study microchip technical training:Oscillators 16-08-11 17

  18. Digital input/output 16-08-11 18

  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 } 16-08-11 19

  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 16-08-11 20

  21. Assignment 1 • Install MPLAB • Installing CC5x c-compiler • Questions, assignments • Example program • Simulation • Test 16-08-11 21

  22. MPLAB IDE 16-08-11 22

  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 16-08-11 23

More Related