6ProgrammingATmega128

6ProgrammingATmega128 - Programming the ATmega128 B. Furman...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Programming the ATmega128 B. Furman 12FEB2007 Mechatronics Concept Map System to Control Sensor Signal Conditioning Controller (Hardware & Software) Power Interface Actuator User Interface Power Source BJ Furman 26JAN06 ME 106 ME 154 ME 157 ME 195 ME 120 ME 297A ME 106 ME 120 ME 106 ME 190 ME 187 ME 110 ME 136 ME 154 ME 157 ME 182 ME 189 ME 195 ME 106 ME 120 ME 106 ATmega 128 Internals See the data sheet, p. 2-3 Pins and Ports for Digital I/O Inputs External connections determine pin voltage Outputs Microcontroller sets pin voltage Controlled by three corresponding registers (memory locations) Direction set by D ata D irection R egister (DDRx) bi-dir. Logic 1 Output Logic 0 Input Pins are set to be inputs on reset Data Register (PORTx) bi-dir. Writing to PORTx when a pin is configured as an input turns on internal pull up resistor (will read as logic 1 until pulled low) Port input pins (PINx) Note: read only ATmega 128 Internal Architecture - 1 http://www.atmel.com/dyn/resources/prod_documents/doc2467.pdf ATmega 128 Internal Architecture - 2 ATmega128 Features http://www.atmel.com/dyn/resources/prod_documents/doc2467.pdf Recap ATmega 128...
View Full Document

Page1 / 10

6ProgrammingATmega128 - Programming the ATmega128 B. Furman...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online