Download
ect 357 n.
Skip this Video
Loading SlideShow in 5 Seconds..
ECT 357 PowerPoint Presentation

ECT 357

125 Vues Download Presentation
Télécharger la présentation

ECT 357

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. ECT 357 Ch 4-5 Program Development

  2. Today’s Quote: Your companions are like the buttons on an elevator. They will either take you up or they will take you down. He that walketh with wise men shall be wise: but a companion of fools shall be destroyed. Proverbs 13:20

  3. Microcontroller Programming Overview • Sense Inputs • Device Inputs • Debounce • Analog • Serial Communications

  4. Microcontroller Programming Overview • Control Outputs • LCD • LED’s • Buzzer • Analog • Serial Communications

  5. Algorithms • LCD Display • Serial Communications • Counting Intervals • Debounce • Time Delay • Decision Making • Control

  6. QwikFlash Board I/O • Analog Potentiometer Input • Digital LED Output’s • Temperature Sensor Input • LCD Output • Pushbutton Switch Input • Rotary Pulse Generator • Digital to Analog Converter • Analog and Digital Inputs

  7. Macros MOVLF macro literal, destination movlw literal movwf destination endm

  8. Subroutines Initial MOVLF B’10001110’, ADCON1 MOVLF B’11100001’, TRISA return

  9. Include Statements Include statements point to files which include subroutines, labels, addresses, etc #include P18F452.inc

  10. Vectors org 0x0000 ;Reset Vector nop goto Mainline org 0x0008 ;High Priority Interrupt Vector nop goto $ ;$ symbol means itself org 0x0018 ;Low Priority Interrupt Vector nop goto $

  11. Program Parts • Program Hierarchy • Assembler Directives • Variables • Macros • Vectors • Programs • Subroutines

  12. Assembly • Hex file .hex • Error file .err • List file .lst • Label file .cod