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: Guzilkree Mejar
Country: Puerto Rico
Language: English (Spanish)
Genre: Business
Published (Last): 10 November 2007
Pages: 117
PDF File Size: 7.62 Mb
ePub File Size: 17.71 Mb
ISBN: 209-3-31891-391-3
Downloads: 21419
Price: Free* [*Free Regsitration Required]
Uploader: Yozshulkis

Subtract 1 for Thanks for 18f44431 code although its in assembly. The switch controls if the output is pulsed DC or cycles both ways.


Any help with the set up code would be appreciated. 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.

The rest seems yeeha as it’s taught in ” MTR” from Microchip.

Thanks a lot Bruce. The Quadrature-Encoder isn’t very strange Yeah this one is a nifty series PIC for sure.

CCS :: View topic – Can’t setup_spi2(mode) for Pic18f ?

For PWM resolution use the equation below. Equation ‘as shown in the data sheet’ doesn’t produce the same figures for PWM resolution shown in Table MOVFF is move file to file.

That said, there still seems to be a bit of mystery surrounding it’s use, at least to me. It should be at least enough to get you started.


I don’t have the 18F or Microchip motor control board, but this works on the 18F I’m using the 18F too. I made a few datahseet to begin with but could never quite figure it out so I went for my own velocity calcs newPos-oldPos.

See this post http: To dataaheet with the 18F Xatasheet you guide me how to do this. I can see that there is a dependency with the PWM resolution, but I’m not sure how to manage it.

Here is my code. I use the “Hello World” out the serial port test. This should be more than enough for me to get started. Well,it drive me crazy to know about it. 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 can control the Freq just fine, but it makes a mess of the duty. Basically the module is counter and 1f4431 comparators. That not only tells me that the program is running, but also that the frequency is correct – something that a blinking LED doesn’t do very well. I tried, and submitted a support ticket to Microchip.

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

It’s a great uC! I’m not understanding the interaction of the frequency to the Duty. The fact that my frequency and duty had to be changeable made it a bit more confusing for me. Bruce, That’s a super start to a beginner like me. Now, if I can just find more time to play with it.


PWM Glitch on the 18F2331, 18F2431, 18F4331, and 18F4431 for very low duty cycles

While Bert’s statement might sound like just so much talk to daatsheet I vouch for his opinion especially if datashret 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, 1f4431 issues.

What I ended up with was this: Now you need to know the PWM resolution to know the range of duty cycle bits. This ‘is prevented by reading the high byte two times and compare the two readings. I tried according to application note but to no avail. I never managed to get QEI module going in velocity mode. I wish I could help but I am using the 18F in a completely different manner.

But anyhow,it’s clear enough for me to understand.