dzlonline / magloop

Simple magnetic loop sensing and communication library for Arduino ATMEGA88, 168, 328p based boards and possibly others.
2 stars 1 forks source link

Atmega 8 #5

Open joesumac opened 5 years ago

joesumac commented 5 years ago

Hi! I'd like to implement the data receive sketch on an Atmega8 - unfortunately the interrupts dont work the same and theres no ADCSRB register on an Atmega8- is there any way to make this work without? Ive tried to understand the .h file and adjusted the code to match the available register names but its a bit beyond my skill to work out how it works. You'll be rewarded with lots of good karma if you can help me!

dzlonline commented 5 years ago

Hi. I think there are two things that need to change a bit for the M88. One is in the timer setup registers and one is the interrupt service routine name. I'm not near my computer at the moment so i can't be specific but i know you can use a M88 if you set up the timer and ADC the same way. The setup bits are moved a bit around to different registers but are essentially the same. The interrupt name is different and you need to look it up somewhere. I'm afk. for some days but feel free to contact me again if you still have problems..

Dzl

On Fri, Dec 14, 2018, 19:09 joesumac <notifications@github.com wrote:

Hi! I'd like to implement the data receive sketch on an Atmega8 - unfortunately the interrupts dont work the same and theres no ADCSRB register on an Atmega8- is there any way to make this work without? Ive tried to understand the .h file and adjusted the code to match the available register names but its a bit beyond my skill to work out how it works. You'll be rewarded with lots of good karma if you can help me!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dzlonline/magloop/issues/5, or mute the thread https://github.com/notifications/unsubscribe-auth/AD9xSNYh1dMcGfvON_XVZNeTif7YKM81ks5u4-lGgaJpZM4ZT-eR .

joesumac commented 5 years ago

Hi!

thankyou so much for getting back to me - I really appreciate it! I will look into the things you suggest and see how I go. I have a pre-made board with an atmega8 which would be just perfect if I can get it to run, otherwise I’ll have to have one manufactured which I’d like to avoid if possible.

Thank you so much for your help!

Joe Eclectrick Ltd Unit 72 Bowers Mill Halifax HX4 0AD

01422 617697 07572 423494

joe@eclectrick.co.uk

On 14 Dec 2018, at 19:12, Dzl notifications@github.com wrote:

Hi. I think there are two things that need to change a bit for the M88. One is in the timer setup registers and one is the interrupt service routine name. I'm not near my computer at the moment so i can't be specific but i know you can use a M88 if you set up the timer and ADC the same way. The setup bits are moved a bit around to different registers but are essentially the same. The interrupt name is different and you need to look it up somewhere. I'm afk. for some days but feel free to contact me again if you still have problems..

Dzl

On Fri, Dec 14, 2018, 19:09 joesumac <notifications@github.com wrote:

Hi! I'd like to implement the data receive sketch on an Atmega8 - unfortunately the interrupts dont work the same and theres no ADCSRB register on an Atmega8- is there any way to make this work without? Ive tried to understand the .h file and adjusted the code to match the available register names but its a bit beyond my skill to work out how it works. You'll be rewarded with lots of good karma if you can help me!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dzlonline/magloop/issues/5, or mute the thread https://github.com/notifications/unsubscribe-auth/AD9xSNYh1dMcGfvON_XVZNeTif7YKM81ks5u4-lGgaJpZM4ZT-eR .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dzlonline/magloop/issues/5#issuecomment-447425152, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae23Jc-Z6VNTRddtidy959XSGmZnpzenks5u4_gRgaJpZM4ZT-eR.