Author |
Message |
Topic: ATMEGA644P Quad input - pulse & direction output. HELP |
WanaGo
Replies: 19
Views: 1948
|
Forum: BASCOM-AVR Archive Posted: Fri Sep 18, 2009 3:50 am Subject: ATMEGA644P Quad input - pulse & direction output. HELP |
Still needing help.
Hopefully more people will see this post over the weekend.
I really need to finish the code asap and any help anyone can give would be very kindly appriciated.
If I can this ... |
Topic: Timer0 ATMEGA644P |
WanaGo
Replies: 6
Views: 537
|
Forum: BASCOM-AVR Archive Posted: Fri Sep 18, 2009 2:45 am Subject: Timer0 ATMEGA644P |
True
Thanks for that.
How do I get hold of Mark?
Sorry, not familiar with the way to go about this yet.
I see personal mail is disabled also...
Thanks |
Topic: ATMEGA644P Quad input - pulse & direction output. HELP |
WanaGo
Replies: 19
Views: 1948
|
Forum: BASCOM-AVR Archive Posted: Thu Sep 17, 2009 11:10 pm Subject: ATMEGA644P Quad input - pulse & direction output. HELP |
In the simulator, PCINT2 doesnt ever seem to generate its interupt when I change either the PORT or PIN settings in the hardware simulation. I can only get it to go into the interupt by manually click ... |
Topic: ATMEGA644P Quad input - pulse & direction output. HELP |
WanaGo
Replies: 19
Views: 1948
|
Forum: BASCOM-AVR Archive Posted: Thu Sep 17, 2009 10:57 pm Subject: ATMEGA644P Quad input - pulse & direction output. HELP |
I have just tried to play with the simulator. I put $Sim at the top.
I am stepping through the code, and some of it seems to work fine, but when I do something like:
Set Portb.1
Then I would ... |
Topic: ATMEGA644P Quad input - pulse & direction output. HELP |
WanaGo
Replies: 19
Views: 1948
|
Forum: BASCOM-AVR Archive Posted: Thu Sep 17, 2009 7:56 pm Subject: ATMEGA644P Quad input - pulse & direction output. HELP |
Here is the latest version of my code.
Does this look like it will work? I havent yet made up the circuit board for it.
'=========================================================================== ... |
Topic: Timer0 ATMEGA644P |
WanaGo
Replies: 6
Views: 537
|
Forum: BASCOM-AVR Archive Posted: Thu Sep 17, 2009 7:50 pm Subject: Timer0 ATMEGA644P |
I changed the compare0a in the On statement to this
On OC0A Output_Pulse_isr
and it seems to have accepted that
and I changed the assignment statement to this
OCR0a = 16
and it seems to ... |
Topic: Timer0 ATMEGA644P |
WanaGo
Replies: 6
Views: 537
|
Forum: BASCOM-AVR Archive Posted: Thu Sep 17, 2009 7:46 pm Subject: Timer0 ATMEGA644P |
Thanks - however it bring up an error for this statement now too
On compare0a Output_Pulse_isr
aswell as
compare0a = 16
Can I use OCR0A for the On statement?
Thanks very much |
Topic: Timer0 ATMEGA644P |
WanaGo
Replies: 6
Views: 537
|
Forum: BASCOM-AVR Archive Posted: Thu Sep 17, 2009 10:24 am Subject: Timer0 ATMEGA644P |
Hey
Can someone please help me with a simple problem - im struggling here.
I need to make a single pulse on an output pin, triggered by a certain condition in the program.
ie I when a conditi ... |
Topic: ATMEGA644P Quad input - pulse & direction output. HELP |
WanaGo
Replies: 19
Views: 1948
|
Forum: BASCOM-AVR Archive Posted: Thu Sep 17, 2009 2:50 am Subject: ATMEGA644P Quad input - pulse & direction output. HELP |
Thanks very much for spending some time looking at this for me.
However I dont think its quite what I am after.
I will try to explain it a little better.
I need 2 pins for the Quadrature in ... |
Topic: ATMEGA644P Quad input - pulse & direction output. HELP |
WanaGo
Replies: 19
Views: 1948
|
Forum: BASCOM-AVR Archive Posted: Wed Sep 16, 2009 6:51 am Subject: ATMEGA644P Quad input - pulse & direction output. HELP |
I dont know if this is correct but hopefully you can see what im trying to achieve...
Here is a bit I modified from above. I still need to turn the output off after a set period to make the output ... |
Topic: ATMEGA644P Quad input - pulse & direction output. HELP |
WanaGo
Replies: 19
Views: 1948
|
Forum: BASCOM-AVR Archive Posted: Tue Sep 15, 2009 9:47 pm Subject: ATMEGA644P Quad input - pulse & direction output. HELP |
Thank you very much
The divider would never need to divide a number really... its more of a counter.
ie you get 5 sets of quadrature pulses come through on the input, and the output will pulse o ... |
Topic: ATMEGA644P Quad input - pulse & direction output. HELP |
WanaGo
Replies: 19
Views: 1948
|
Forum: BASCOM-AVR Archive Posted: Tue Sep 15, 2009 11:35 am Subject: ATMEGA644P Quad input - pulse & direction output. HELP |
This is what I have come up with so far - using alot of code from 'glena' example he provided on this forum.
Its not complete by any means, still piecing the necessary bits together.
If anyone can ... |
Topic: ATMEGA644P Quad input - pulse & direction output. HELP |
WanaGo
Replies: 19
Views: 1948
|
Forum: BASCOM-AVR Archive Posted: Tue Sep 15, 2009 8:33 am Subject: ATMEGA644P Quad input - pulse & direction output. HELP |
Is it possible to get the ISR of the Pin Change routine, which does the quadrature handling - to pulse the counter? And is it possible to preset the counter to then make a pulse of set period?
Sorr ... |
Topic: ATMEGA644P Quad input - pulse & direction output. HELP |
WanaGo
Replies: 19
Views: 1948
|
Forum: BASCOM-AVR Archive Posted: Tue Sep 15, 2009 7:57 am Subject: ATMEGA644P Quad input - pulse & direction output. HELP |
*EDIT*
Please skip to the end posts, there is updated code there.
I still need help to verify my code is correct, and to find whats up with the Simulator and my code.
******
Hello
Im a bit ru ... |
Topic: Vista x64 Help |
WanaGo
Replies: 2
Views: 305
|
Forum: BASCOM-AVR Archive Posted: Sun Jan 18, 2009 9:49 am Subject: Vista x64 Help |
Is there a fix/solution to using the STK200/300 Parallel programmers with Bascom AVR under Vista x64?
I have done a bit of a search, but havent found a solution.
My laptop with XP on it is on it ... |
|