------=_20100524114411_19033 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Hi All, sorry guys I was inactive for very long time at work due to too much email load I couldn't check piclist email so every thing changed I can only check piclist email at home. I have question that I am kind of stuck. friend of mine asked me to make small board for his vw bug that has 1 input and 1 output. the input takes pulse (4 pulse is 1 cycle) the frequency goes from hz to khz at this moment is unknown so the pic reads the pulse and output changes on time only ( in this case called dwell control) but the frequency input vs output is same. attachment image is I am reading the pulse and the output is same at this moment since things do not work for me at list I outputted the same thing. Since he is my friend I only asked for absolute minimum price 1000$. I did the schematic and layout so far I spend 500$ to make at list 1 board for him so 500$ left. does any one feel like doing this project I prefer to use CCS C compiler if you do not have it you can barrow mine until its done or if you guys can give some direction I can continue working on it. so far what I did is I used pic capture input to capture how fast it runs that's using ccp interrupt then in main loop i am trying to output same pulse but to be able to change on time this is where I am not doing it right. the test code I included did lots of testing lots of things are commented out. probably this is not how I suppose to start. i was thinking more like maybe using external timer1 input is better idea i do not know. the the pcb i made uses 12F683 but bread board i am playing around is 18f4550. I do not need to make any money or some thing all I need is to make it work. I do not mind pay some some to make the base software going that would be another thing to do. I use ccs c this is the reason I like to stay on ccs that way I can update etc. any idea? or any one like to work on it? please send email to abelian.andre@gmail.com I am not sure if any rules changed I apologize if I am not suppose to ask questions like this Andre ------=_20100524114411_19033 Content-Type: application/octet-stream; name="Spyke_CCP.c" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Spyke_CCP.c" Ly8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8v Ly8vLy8vLy8vLy8vLy8vLw0KLy8vLyAgUFdNIHNvZnR3YXJlIHRlc3QNCi8vLy8gIA0KLy8vLy8v Ly8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8v Ly8vLy8vLy8vLw0KDQojaW5jbHVkZSA8MThGND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yMCBWYWx1ZSA9ICUyeFxu XHIiLGkpOw0KICAgICAgcHJpbnRmKCJUaW1lcjAgVDEgYW5kIFQyIGNhcHR1cmVkIFZhbHVlID0g JTJ4LCAlMngsICUyeCwlMnhcblxyIiwgZ2V0X3RpbWVyMCgpLHQxLHQyLGNhcHR1cmVkX3ZhbHVl KTsNCiANCi8vICAgICAgZW5hYmxlX2ludGVycnVwdHMoSU5UX1JUQ0MpOw0KI2lmIDANCiAgICAg ICAgICBzZXRfdGltZXIwKGN5Y2xlX3QwKTsgICAgICAgICAgICAgICAgLy8gYWRqdXN0IHRpbWVy MA0KICAgICAgICAgICAgaWYgKChyaXNpbmdfZWRnZTEgKysgPiBwd20xKSYmKHdhaXRpbmdfZm9y X2ZhbGwgPT0gMSkpDQogICAgICAgICAgICAgICAgICAgew0KICAgICAgICAgICAgcmlzaW5nX2Vk Z2UxPSAwOw0KICAgICAgICAgICAgY29pbF9vdXRwdXRfb247DQogICAgICAgICAgICBmYWxsaW5n X2VkZ2UxID0gcHdtMSAtIChjYXB0dXJlZF92YWx1ZSozKTsNCiAgICAgICAgICAgICAgICAgICB9 DQoNCiAgICAgICAgICBpZiAoKGZhbGxpbmdfZWRnZTEgKysgPiBwd20xKSYmKHdhaXRpbmdfZm9y X2ZhbGwgPT0gMCkpDQogICAgICAgICAgICAgICAgICB7DQogICAgICAgICAgICBmYWxsaW5nX2Vk Z2UxID0gMDsNCiAgICAgICAgICAgIGNvaWxfb3V0cHV0X29mZjsNCiAgICAgICAgICAgICAgICAg IH0NCg0KI2VuZGlmDQoNCg0KDQoNCg0KI2lmIDENCiAgaWYgKHdhaXRpbmdfZm9yX2ZhbGwgPT0g MSkNCiAgICAgICAgew0KICAgICAgb3V0cHV0X2hpZ2goUElOX0MyKTsNCiAgICAgIG91dHB1dF9s b3coUElOX0MyKTsNCiAgICAgICBmb3IoY291bnQ9MDsgY291bnQgPCA1OyBjb3VudCsrKXsgfQ0K ICAgICAgICB9DQovLyAgICAgICAgb3V0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DQovLyAgICAgIHNl dHVwX2NjcDIoQ0NQX0NBUFRVUkVfRkV8Q0NQX0NBUFRVUkVfRElWXzQpOw0KICAgICAgc2V0dXBf Y2NwMihDQ1BfQ0FQVFVSRV9GRSk7DQogICAgICB3YWl0aW5nX2Zvcl9mYWxsPVRSVUU7DQogICAg ICAgIH0NCiAgIA0KfQ0KDQoNCiNpZiAwDQojaW50X1JUQ0MNCnZvaWQgIFJUQ0NfaXNyKHZvaWQp IA0Kew0KICBpZih3YWl0aW5nX2Zvcl9mYWxsID09IDEpDQogICAgICAgIHsNCiAgICAgIG91dHB1 dF9oaWdoKFBJTl9DMik7DQogICAgICAgIH0NCiAgIGlmKHdhaXRpbmdfZm9yX2ZhbGwgPT0gMCkN CiAgICAgIHsNCiAgICAgIG91dHB1dF9sb3coUElOX0MyKTsNCiAgICAgIH0NCn0NCiNlbmRpZg0K DQoNCg0KDQogDQoNCg0KICANCg== ------=_20100524114411_19033 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist ------=_20100524114411_19033--