Site Tools


projects:repair:dell_pa10

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projects:repair:dell_pa10 [2013/05/11 20:59] – [Alternative implementations] adminprojects:repair:dell_pa10 [2013/10/29 02:05] (current) – [Relevant articles] admin
Line 67: Line 67:
   * Other: 12HV609, 12HV615, 16HV540, 16HV610   * Other: 12HV609, 12HV615, 16HV540, 16HV610
  
 +==== 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:
 +  avrdude -P usb -c dragon_isp -p attiny13 -Uflash:w:/Users/iudex/Downloads/tiny13-90w/Dell_1wire.hex:i
 +  avrdude -P usb -c dragon_isp -p attiny13 -Ueeprom:w:/Users/iudex/Downloads/tiny13-90w/Dell_1wire.eep:i
 +  
 +
 +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://www.engbedded.com/fusecalc]]
 +
 +==== 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:
 +<code>
 +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>v
 +Pinstates:
 +#12    .#11    .#10    .#09   .#08   .#07   .#06   .#05   .#04   .#03   .#02   .#01   
 +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>W
 +POWER SUPPLIES ON
 +1-WIRE>P
 +Pull-up resistors ON
 +Warning: no voltage on Vpullup pin
 +1-WIRE>e
 +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>v
 +Pinstates:
 +#12    .#11    .#10    .#09   .#08   .#07   .#06   .#05   .#04   .#03   .#02   .#01   
 +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>(0)
 + 0.Macro menu
 +Macro     1WIRE address
 +No device, try (ALARM) SEARCH macro first
 +1WIRE ROM COMMAND MACROs:
 + 51.READ ROM (0x33) *for single device bus
 + 85.MATCH ROM (0x55) *followed by 64bit address
 + 204.SKIP ROM (0xCC) *followed by command
 + 236.ALARM SEARCH (0xEC)
 + 240.SEARCH ROM (0xF0)
 +
 +1-WIRE>(240)
 +SEARCH (0xF0)
 +Macro     1WIRE address
 +Device IDs are available by MACRO, see (0).
 +
 +...
 +...
 +...
 +
 +</code>
 +
 +If you are ready, either type:
 +
 +<code>
 +1-WIRE>e
 +Select Vpu (Pullup) Source:
 + 1) External (or None)
 + 2) Onboard 3.3v
 + 3) Onboard 5.0v
 +
 +1-WIRE>p
 +Pull-up resistors OFF
 +
 +(1)>1
 + on-board pullup voltage disabled
 +
 +1-WIRE>w
 +POWER SUPPLIES OFF
 +</code>
 +
 +or type 'm', which will turn off all outputs, power supplies and pull-up resistors. It's ready to accept a new mode. Press 1 to return to HiZ mode:
 +<code>
 +1-WIRE>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)>1
 +Ready
 +HiZ>
 +</code>
 +
 +Programming a DS2502 with bus pirate:
 +<code>
 +1-WIRE>(51)
 +BUS RESET  OK
 +READ ROM (0x33): 0x89 0xA0 0x56 0x2E 0x12 0x70 0x5E 0x1C 
 +Unknown device
 +
 +1-WIRE>r
 +READ: 0xFF 
 +1-WIRE>r:255
 +READ: 0xFF 0xFF ... 0xFF
 +</code>
 +255 bytes will be read
 +</code>
 ==== 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 81: Line 221:
   * [[http://www.chzsoft.de/storage/2501unw.pdf]] datasheet Dallas Semiconductor DS2501 with 512 bits   * [[http://www.chzsoft.de/storage/2501unw.pdf]] datasheet Dallas Semiconductor DS2501 with 512 bits
   * [[http://ww1.microchip.com/downloads/en/DeviceDoc/41270E.pdf]] Datasheet PIC10F220 from Microchip   * [[http://ww1.microchip.com/downloads/en/DeviceDoc/41270E.pdf]] Datasheet PIC10F220 from Microchip
 +  * [[http://dangerousprototypes.com/docs/3EEPROM_explorer_board]] 1-wire tutorial with eeprom DS2431
 +  * [[http://dangerousprototypes.com/docs/Bus_Pirate_menu_options_guide]] Bus Pirate menu options guide
 +  * [[http://dangerousprototypes.com/docs/1-Wire]]
 +  * [[http://www.youtube.com/watch?v=VVyCg_JFt1E]] Youtube clip about downloading source code, building uploading and using 1-wire as an example.
 +  * [[http://hackaday.com/2008/12/24/parts-1k-1-wire-eeprom-ds2431/]] programming session with 1-wire and bus pirate
projects/repair/dell_pa10.1368298782.txt.gz · Last modified: 2013/05/11 20:59 by admin