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.

Author: Fenrisar Arashizil
Country: Botswana
Language: English (Spanish)
Genre: Art
Published (Last): 5 December 2014
Pages: 251
PDF File Size: 1.52 Mb
ePub File Size: 18.16 Mb
ISBN: 474-3-61660-442-1
Downloads: 5225
Price: Free* [*Free Regsitration Required]
Uploader: Gardarn

The switch controls if the output is pulsed DC or cycles both ways. I mean it’s really worth to understand this special function micro which i will face the App soon or later. I don’t fully understand how to plan for it, but I did figure out a 18f4341 in my application and kind of applied a brute force solution.

This change will be notified in a datasheet’s DSB.

MOVFF is move file to file. The Quadrature-Encoder isn’t very strange One Pot is for Frequency, the other is for Duty. That was a few weeks of hair pulling!.

Resolution is the number of bits you have to control the duty cycle. The fact that my frequency and duty had to be changeable made it a bit more confusing for me. I am a bit confused.


PWM Glitch on the 18F, 18F, 18F, and 18F for very low duty cycles | Microchip

Now, if I can just find more time to play with it. Subtract 1 for Well,it drive me crazy to know about 18f4431. It sure is a cool device. Great tip on counter overflow. I can see that there is a dependency with the PWM resolution, but I’m not sure how to manage it.

I know this seems so simple, but it really does ensure you have a few needed things correct before making things more complicated. For PWM resolution use the equation below.

Thank you in advance. Equation ‘as shown in the data sheet’ doesn’t produce the same figures for PWM resolution shown in Table Yeah this one is a nifty series PIC for sure. I haven’t played much with this particular feature.

The more we pound on this and post the results, the better we can get a handle on it. It should be at least enough to get you started.


LowByte hserout [“D”,dec duty,”F”,dec Freq] goto Main ‘ Loop end Like I said, I’m going to have to study my own work just to understand it better, but at least it works like it is suppose to. Using Darrel’s interupt routines I managed to get motor controller for my robot working, with PID filter and all.


I don’t have the 18F or Datasyeet motor control board, but this works on the 18F But,i gotta some problem with the PWM Period value. Could you guide me how to do this. It’s a great uC! I mean how to find the values for.

I will definately incorporate. Thanks for the explanation Henrik. I tried according to application note but to no avail.

When the counter starts at 0 the output is set, when it “hits” the value of the first comparator the outputs is cleared and when the counter “hits” the value of the second compartor the PWM cycle starts over. I can control the Freq just fine, but it makes a mess of the duty.