1 / 12

ECT 357

ECT 357. Ch 4-5 Program Development. 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.

della
Download Presentation

ECT 357

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

More Related