hardware msp430f1611
play

Hardware MSP430F1611 Ports: P1-P6 Each port == 8 pins Memory, - PowerPoint PPT Presentation

Hardware MSP430F1611 Ports: P1-P6 Each port == 8 pins Memory, clock RAM: between 256 and 16K bytes, depending on the model Code (flash == EEPROM): from 8KB to 256KB Max clock rate up to 25MHz Memory layout Port access These ones can


  1. Hardware

  2. MSP430F1611 Ports: P1-P6 Each port == 8 pins

  3. Memory, clock RAM: between 256 and 16K bytes, depending on the model Code (flash == EEPROM): from 8KB to 256KB Max clock rate up to 25MHz

  4. Memory layout

  5. Port access These ones can trigger interrupts

  6. Sensor interfaces 2 UARTs, each reconfigurable into: SPI I 2 C direct pin access ADC (8 ports usable for this purpose) DAC (2 ports) – for actuators

  7. UART Two ways (separate wires) Tx/Rx Digital signal (two levels) assuming: limited length of a data unit (byte) both parties know the fixed duration of a bit high low start 1 1 1 0 1 1 0 0 stop

  8. SPI The primary difference: clock is provided on a separate wire it works both ways at once (sort of) CLK OUT IN

  9. SPI timing

  10. SPI implementation Master SOMI Slave b7 b7 There are two byte-sized shift registers interconnected by the two data lines. A transfer always involves exchanging their contents (so it is always both ways). b0 b0 SIMO CLK

  11. I 2 C Serial DAta Serial CLock

  12. Example: SHT7x

  13. Connection

  14. Protocol

  15. Even simpler Temperature sensor Single-wire interface, i.e., no clock!

  16. Connecting

  17. Communication (startup)

  18. Communication (read/write)

  19. Device identification protocol Command “search ROM” 0xF0 All devices respond with subsequent bits of their IDs (64 of them), each bit being reported twice positive + negated. The micro responds after every bit with 0 or 1 selecting the subset of devices that it wants to continue with. The remaining ones remain silent until the next reset pulse. 00 – there are devices with both 0 and 1 on this position 01 – all devices have 0 on this position 10 – all devices have 1 on this position

  20. ADC (MSP430) Up to 8 configurable pins (independent inputs) 12-bit accuracy: d = 4096 x (V - V ref- ) / (V ref+ - V ref- ) reference measured lower bound upper bound Can be sampled automatically at prescribed rate

  21. Example PAR V ref+ = 1.2V (Zener) V ref- = 0 c = f x d f = 1200x5/4096 f = 1.465

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend