This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
projects:repair:dell_pa10 [2013/05/24 21:53] – admin | projects:repair:dell_pa10 [2013/10/29 02:05] (current) – [Relevant articles] admin | ||
---|---|---|---|
Line 68: | Line 68: | ||
==== attinty13 solution ==== | ==== attinty13 solution ==== | ||
+ | Test the communications with the controller with: | ||
+ | avrdude -P usb -c dragon_isp -p attiny13 -v | ||
+ | |||
With the attiny13 solution, program the microcontroller with: | With the attiny13 solution, program the microcontroller with: | ||
- | avrdude -P usb -c dragon_isp -p attiny2313 | + | avrdude -P usb -c dragon_isp -p attiny13 |
+ | avrdude -P usb -c dragon_isp -p attiny13 -Ueeprom:w:/Users/iudex/Downloads/ | ||
+ | |||
+ | |||
+ | The terminal mode can be entered with: | ||
+ | avrdude -P usb -c dragon_isp -p attiny13 -t | ||
+ | ==== fuse settings ==== | ||
+ | * see at this page for info about setting the fuses: [[http:// | ||
+ | |||
+ | ==== Debugging with Bus Pirate ==== | ||
+ | Connect Bus Pirate with 1-wire device as follows: | ||
+ | * (Bus Pirate) MOSI -> (ATtiny13A) 1-wire data pin (to 47 ohm resistor) | ||
+ | * (Bus Pirate) GND -> (ATtiny13A) GND | ||
+ | Because the ATtiny13A is not a genuine 1-wire ic, connect additionally: | ||
+ | * (Bus Pirate) +5v -> (ATtiny13A) +5v | ||
+ | |||
+ | With Bus Pirate v4 an external pull-up resistor is not required. The board con be configured by software to have one. Use a terminal, configure speed to 9600 N81, 'new line' shall be only CR. Connect the Bus Pirate and enter the following commands: | ||
+ | < | ||
+ | HiZ>m | ||
+ | 1. HiZ | ||
+ | 2. 1-WIRE | ||
+ | 3. UART | ||
+ | 4. I2C | ||
+ | 5. SPI | ||
+ | 6. 2WIRE | ||
+ | 7. 3WIRE | ||
+ | 8. KEYB | ||
+ | 9. LCD | ||
+ | 10. PIC | ||
+ | 11. DIO | ||
+ | x. exit(without change) | ||
+ | |||
+ | (1)>2 | ||
+ | Ready | ||
+ | 1-WIRE> | ||
+ | Pinstates: | ||
+ | #12 .#11 .#10 .#09 | ||
+ | GND.5.0V.3.3V.VPU.ADC.AUX2.AUX1.AUX.-.-.-.OWD | ||
+ | P.P.P.I.I.I.I.I.I.I.I.I. | ||
+ | GND.0.00V.0.00V.0.00V.0.00V.L.L.L.L.L.L.L. | ||
+ | 1-WIRE> | ||
+ | POWER SUPPLIES ON | ||
+ | 1-WIRE> | ||
+ | Pull-up resistors ON | ||
+ | Warning: no voltage on Vpullup pin | ||
+ | 1-WIRE> | ||
+ | Select Vpu (Pullup) Source: | ||
+ | 1) External (or None) | ||
+ | 2) Onboard 3.3v | ||
+ | 3) Onboard 5.0v | ||
+ | |||
+ | (1)>3 | ||
+ | 5V on-board pullup voltage enabled | ||
+ | 1-WIRE> | ||
+ | Pinstates: | ||
+ | #12 .#11 .#10 .#09 | ||
+ | GND.5.0V.3.3V.VPU.ADC.AUX2.AUX1.AUX.-.-.-.OWD | ||
+ | P.P.P.I.I.I.I.I.I.I.I.I. | ||
+ | GND.4.96V.3.34V.4.86V.0.00V.L.L.L.H.H.H.H. | ||
+ | 1-WIRE> | ||
+ | | ||
+ | Macro 1WIRE address | ||
+ | No device, try (ALARM) SEARCH macro first | ||
+ | 1WIRE ROM COMMAND MACROs: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | 1-WIRE> | ||
+ | SEARCH (0xF0) | ||
+ | Macro 1WIRE address | ||
+ | Device IDs are available by MACRO, see (0). | ||
+ | |||
+ | ... | ||
+ | ... | ||
+ | ... | ||
+ | |||
+ | </code> | ||
+ | |||
+ | If you are ready, either type: | ||
+ | |||
+ | < | ||
+ | 1-WIRE>e | ||
+ | Select Vpu (Pullup) Source: | ||
+ | 1) External (or None) | ||
+ | 2) Onboard 3.3v | ||
+ | 3) Onboard 5.0v | ||
+ | |||
+ | 1-WIRE> | ||
+ | Pull-up resistors OFF | ||
+ | |||
+ | (1)>1 | ||
+ | | ||
+ | |||
+ | 1-WIRE> | ||
+ | POWER SUPPLIES OFF | ||
+ | </ | ||
+ | |||
+ | or type ' | ||
+ | < | ||
+ | 1-WIRE> | ||
+ | 1. HiZ | ||
+ | 2. 1-WIRE | ||
+ | 3. UART | ||
+ | 4. I2C | ||
+ | 5. SPI | ||
+ | 6. 2WIRE | ||
+ | 7. 3WIRE | ||
+ | 8. KEYB | ||
+ | 9. LCD | ||
+ | 10. PIC | ||
+ | 11. DIO | ||
+ | x. exit(without change) | ||
+ | |||
+ | (1)>1 | ||
+ | Ready | ||
+ | HiZ> | ||
+ | </ | ||
- | Test the controller | + | Programming a DS2502 |
- | | + | < |
+ | 1-WIRE> | ||
+ | BUS RESET OK | ||
+ | READ ROM (0x33): 0x89 0xA0 0x56 0x2E 0x12 0x70 0x5E 0x1C | ||
+ | Unknown device | ||
+ | 1-WIRE>r | ||
+ | READ: 0xFF | ||
+ | 1-WIRE> | ||
+ | READ: 0xFF 0xFF ... 0xFF | ||
+ | </ | ||
+ | 255 bytes will be read | ||
+ | </ | ||
==== Alternative implementations ==== | ==== Alternative implementations ==== | ||
Searching with google for 1 wire emulator revealed following pages: | Searching with google for 1 wire emulator revealed following pages: | ||
Line 88: | Line 221: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// |