A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
|
Hi All: I am a total beginner in the pic field and am looking for some help for decoding a stream I receive on a pin. I need to sample 64 transitions and time the high or low between each transition i.e. how long has the pin been high or low between each transition. The stream uses this pattern to represent data: 0 is 400us high, 700us low 1 is 400us high, 1800us low Does anybody have some code to do something similar with a 12c508 or a 16f84? I'd be forever greatful to see something similar! Thanks. |
|
|
|
Hi who-ever-you-are ;-> Is that to comunicate with a Dallas 1-Wire protocol? (like the one used on thermometers or e-keys) If so, I have some code for pic16f84 that could help you. If not, I can't :( Regards, Enzo |
|
Dear Patrick, We use this code to read a electronic key DS1990A (in fact, its just a ROM device), using the protocol. The code is C code, compiled great with C2C compiler, from Pavel Baranov. (http//:www.geocities.com/SiliconValley/Network/3656/c2c/c.html) a shareware compiler. I'm sorry to say that all coments are in Spanish. If you have real problems w' it, maybe I could help... (if it isn't very urgent) I hope this could help you. Good luck! Enzo | |||
| |||
|
|
|
(English version of letter at bottom) Hola a todos! Se que no es específico de la lista, pero quizas puedan ayudarme. Tengo un proyecto que usa una EEPROM serial 93C66 y tengo un problema curioso. "A veces", cuando desconecto la alimentación, la memoria pierde TODO su contenido, o lo sobreescribe con una palabra (0xBF usualmente). Estas memorias tienen un comando que habilita la escritura de datos (que estoy segurisimo que no lo envio bajo ninguna circunstancia) y sin embargo, la cosa no funciona... La memoria esta configurada para org = 8bits. Gracias de antemano!! Enzo ---- English version follows ---- Hi everybody! I know this isn't list specific, but maybe somebody could helpe me :) I have a project wich uses a serial EEPROM 93C66 and I've a ware problem: "Sometimes", when I disconect power, the memory losses ALL its content, or overwrites it with a word (ussually 0xBF). This kind of memories have a command wich enables data writing (I'm positive sure that I'm not sending the command under any circunstance) and however, the thing doesn't work... The EEPROM is configured as org = 8bit Thanks in advance!! Enzo |