Welcome to the Zilog forum!
Go to bottomPage: 1
TOPIC:
#1006
help encoder incremental using Z8F6423 11 Months, 3 Weeks ago Karma: 0
Hello,

I need to use an incremental encoder connected in the Z8F6423.
is there any application note with incremental encoder using Z8F6423?

best regards
Eduardo
Eduardo (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1007
Re:help encoder incremental using Z8F6423 11 Months, 2 Weeks ago Karma: 0
One input from the encode should go to a dual-edge interrupt port with a service routine that reads the other input from the encoder at the moment of the interrupt. Then you apply the logic table to those two values to determine direction of increment. You have to ensure very small latency in the interrupts for you to have good readings at high-speeds.
mr (User)
Senior Boarder
Posts: 41
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1009
Re:help encoder incremental using Z8F6423 11 Months ago Karma: 1
Hi,
I use an incremental encoder with z8encore! I connetc one phase on (for example) pa1 and pa2 and the other on pa3 and pa4. Pa1 and pa3 on rising edge interrupts, pa2 and pa4 on falling edge interrupts. In the interrupts routine I determine che direction of increments and increment or decrement the counters of lenght.
The latency of interrupts routine are about 5usec.
I hope this can help you.
renato fontanel (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1