1 / 34

CMPE 118/L Introduction to Mechatronics

CMPE 118/L Introduction to Mechatronics. Tu-Th 4:00-5:45pm, Jack Baskin Engineering 372. Lab: Jack Baskin Engineering 150, 24/7. Instructor: Prof. Gabriel Hugh Elkaim. TAs: Rob Kelbley, Eric Decker. Why “Smart Products?”. Focuses on Microcomputers as Components, not Controllers

onan
Download Presentation

CMPE 118/L Introduction to Mechatronics

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. CMPE 118/LIntroduction to Mechatronics Tu-Th 4:00-5:45pm, Jack Baskin Engineering 372 Lab: Jack Baskin Engineering 150, 24/7 Instructor: Prof. Gabriel Hugh Elkaim TAs: Rob Kelbley, Eric Decker

  2. Why “Smart Products?” Focuses on Microcomputers as Components, not Controllers Encompasses Mechatronics, & Embedded Systems Design

  3. What Makes Mechatronics Different? Intelligent Decision Making The Ability to Adapt Cost Effectiveness

  4. What Makes the Decisions? Computers

  5. Where have you encountered Smart Products ?

  6. Number Representations Binary: 10101010 Hexadecimal: $AA Converting: 1010 1010 $A A

  7. Number Terminology Upper Nibble LSB MSB Lower Nibble 1010 1010 Byte Integer Word

  8. 11111111 +1 00000000 -1 00000000 11111111 Modulo Arithmetic

  9. 11111111 +1 00000000 -1 00000000 11111111 Modulo Arithmetic Watch out for intermediate results too: Cast variables up to next higher size Cast result back down How do you fix it?

  10. Bit Manipulation How do you Set, Clear or Test individual bits?

  11. To Test a bit 0011 1010 (VAR & IMASK) 0001 0000 AND mask, tests a single bit 0001 0000 Result is 0 or not 0 To Clear a bit 0011 1010 (VAR & CMASK) 1110 1111 AND mask, clears a single bit Result same except for bit position 0010 1010 To Set a bit 0011 1010 (VAR | SMASK) 1000 0000 OR mask, sets a single bit 1011 1010 Result same except for bit position Bit Manipulation How do you Set, Clear or Test individual bits? The Bitwise Operators Bitwise AND = & Bitwise OR = |

  12. What is a: Microprocessor? Micro-computer? Microcontroller?

  13. Micro-Computer Components CPU Program Memory Scratchpad Memory Input/Output (I/O)

  14. Address Bus I/O Memory CPU Data Bus

  15. Address Space

  16. Instructions Instructions to the Microprocessor. Often referred to as “Machine Language” Data Generally we put this there during the operation of our programs Control These occupy space like memory, but are actually Registers special locations that interact directly with the hardware of the microprocessor. Ports A subset of the control registers. Ports generally offer direct control of the pins on the microprocessor. What’s in the Address Space?

  17. Memory Map

  18. MROM PROM EPROM Erasable OTP EEPROM (E2PROM) FLASH EPROM Program Memory Options

  19. Static RAM Battery-Backed Dynamic RAM Cache RAM Scratchpad Memory Options

  20. Parallel I/O Programmable Fixed Direction What Features Will You Find?

  21. Counters Timers Simple Complex Outrageously Complex What Features Will You Find?

  22. A/D Converters 8-bit 10-bit Multi-channel What Features Will You Find?

  23. D/A Converters PWM True DACs What Features Will You Find?

  24. Feature Sets Architecture Physical Size Cost What Differentiates Micro-Controllers?

  25. Hi-Performance 16-bit Controller 16-bit Data Bus Supports Hi-Level Languages Comes in over 45 “Flavors” The Freescale 68HC12(was Motorola)

  26. 16-bit Address Bus 64K (65536) Byte Address Space 16-bit Data Bus 2K (2048) Bytes RAM 32K Bytes FLASH ROM 68HC12 Memory

  27. 24 Bi-Directional Lines 8 are multiplexed analog input 68HC12 Parallel I/O

  28. 16-bit Free-Running Counter Input Captures (8) Output Compares (8) 68HC12 Timer System

  29. 10-bit (1:1024) Resolution 8 Channels 2 banks of 4 inputs 68HC12 A/D Converter

  30. 8/16 Bits Interrupt on Overflow 68HC12 Pulse Accumulator

  31. SPI (synchronous) SCI (asynchronous) 68HC12 Serial I/O

  32. The Development Process f o o PC NanoCoreDX Serial Cable (RS232) 68HC12

  33. Questions?

More Related