Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Rotary encoder

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here
View previous topic :: View next topic  
Author Message
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 1161
Location: France

france.gif
PostPosted: Sat Apr 02, 2016 2:05 pm    Post subject: Rotary encoder Reply with quote

Hi,

Yes I know encoder() is a function existing in Bascom,
But unfortunately, or because I misunderstand, it was not working properly for me
so I decide to create a new one working with pcint interrupts

I hope it can help you

JP Wink
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Fri Apr 08, 2016 3:31 pm    Post subject: Reply with quote

hi JP

thanks for sharing.

you can call the built in encoder function from the pcint isr.
or you call it in a loop but using pcint it will not miss pulses.

_________________
Mark
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum