[an error occurred while processing this directive]
|
Это PIC16F84A. Батон подключен к выводу RA4 с открытым колектором. Подтяжка вначале была 1к, сейчас 5к. Тайминг взят с даласавской доки AN126.
Вот вырезка с ПДФа -
1-WIRE OPERATIONS Table 1
Operation Description Implementation
Write 1 bit Send a ‘1’ bit to the 1-Wire
slaves (Write 1 time slot)
Drive bus low, delay 6µs
Release bus, delay 64µs
Write 0 bit send a ‘0’ bit to the 1-Wire
slaves (Write 0 time slot)
Drive bus low, delay 60µs
Release bus, delay 10µs
Read bit Read a bit from the 1-Wire
slaves (Read time slot)
Drive bus low, delay 6µs
Release bus, delay 9µs
Sample bus to read bit from slave
Delay 55µs
Reset Reset the 1-Wire bus slave
devices and ready them for a
command
Drive bus low, delay 480µs
Release bus, delay 70µs
Sample bus, 0 = device(s) present, 1 = no device present
Delay 410µs
E-mail: info@telesys.ru