Datasheet 18F – Ebook download as PDF File .pdf), Text File .txt) or read book online. PDA. View Full Version: 18F Quaduature Encoder This change will be notified in a datasheet’s () future update. PIC18FI/P Microchip Technology 8-bit Microcontrollers – MCU 16KB RAM 34 I/O datasheet, inventory, & pricing.
|Published (Last):||7 January 2005|
|PDF File Size:||10.90 Mb|
|ePub File Size:||3.49 Mb|
|Price:||Free* [*Free Regsitration Required]|
The fact that my frequency and duty had to be changeable made it a bit more confusing for me. Isn’t that an awesome controller? Thanks a lot Bruce. I tried, and submitted a support ticket to Microchip. Any help with the set up code would be appreciated.
PIC18F – Microcontrollers and Processors – Microcontrollers and Processors
But,i gotta some problem with the PWM Period value. The rest seems yeeha as it’s taught in ” MTR” from Microchip.
Hi Bruce, Sorry if i pester you a lot. The Quadrature-Encoder isn’t very strange I can control the Freq just fine, but it makes a mess of the duty. For PWM resolution use the equation below.
On the pin version, forget using RE3 as an input. This is part of it and not complete yet.
Well,it drive me crazy to know about it. The switch controls if the output is pulsed DC or cycles both ways.
To work with the 18F Here is my code. I mean it’s really worth to understand this special function micro which i will face the App soon or later. I will definately incorporate.
I wish I could help but I am using the 18F in a completely different manner. Thanks for your code although its in assembly. Beat your head long enough against the wall, and sometimes you find a door.: Subtract 1 for I am a bit confused. I can see that there is a dependency with the PWM resolution, but I’m not sure how to manage it. I’m not understanding the interaction of the frequency to the Duty.
I don’t have the 18F or Microchip motor control board, but this works on the 18F I was wondering if someone has done same thing in pic basic i.
18F Quaduature Encoder [Archive] – MEL PICBASIC Forum
This ‘is prevented by reading the high byte two times and compare the two readings. An 18F with two pots, a switch, and the FETs with drivers. This should be more than enough for me to get started.
While Bert’s statement might sound like just so much talk to datsheet I vouch for his opinion especially if you are moving to 18F chips for the first few times, I had an amazingly difficult time just getting this chip to blink the LED, owing to programmer issues, config issues. I mapped out the formulas in Excel, but I am still having trouble getting my head around the details.
One Pot is for Frequency, the other is for Duty. Using Darrel’s interupt routines I managed to get motor controller for my robot working, with PID filter and all.