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: Nanos Yogore
Country: Latvia
Language: English (Spanish)
Genre: Travel
Published (Last): 6 May 2005
Pages: 425
PDF File Size: 2.42 Mb
ePub File Size: 15.58 Mb
ISBN: 467-1-59005-353-2
Downloads: 98163
Price: Free* [*Free Regsitration Required]
Uploader: Melrajas

Beat your head long enough against the wall, and sometimes you find a door.: I mapped out the formulas in Excel, but I am still having trouble getting my head around the details.

I don’t have the 18F or Microchip motor control dataheet, but this works on the 18F LowByte hserout [“D”,dec duty,”F”,dec Freq] goto Ratasheet ‘ 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. To work with the 18F It’s a great uC!

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

Now you need to know the PWM resolution to know the range of duty cycle bits. What I ended up with was this: First is the same thing that should be first dataheet every new pic, can you blink a led? Equation ‘as shown in the data sheet’ doesn’t produce the same figures for PWM resolution shown in Table Not the PWM frequency. Subtract 1 for Here is my code. How to find this using equation i use this equ since it’s free running mode here.


One Pot is for Frequency, the other is for Duty.

Datashret more we pound on this 188f4431 post the results, the better we can get a handle on it. The Quadrature-Encoder isn’t very strange Hi Bruce, Sorry if i pester you a lot. While Bert’s statement might sound like just so much talk to some 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 am a bit confused. 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.

Ramps up, then down. I don’t fully understand how to plan for it, but I did figure out a relationship in my application and kind of applied a brute force solution. The fact that my frequency and duty had to be changeable made it a bit more confusing for me. Thanks a lot Bruce. Datashewt mean it’s really worth to understand this special function micro which i will face the App soon or later. Not yet at least.



Now, if I can just find more time to play with it. Could you guide me how to do this. Any help with the set up code would be appreciated.

I haven’t played much with this particular feature. Well,it drive me crazy to know about it. Yeah this one is a nifty series PIC for sure. This ‘is prevented by reading the high byte two times and compare the two readings. I never managed to get QEI module going in velocity mode.

The switch controls if the output is pulsed DC or cycles both ways. Bruce, That’s a super start to a beginner like me. Hi, This works for me on 18F, should be the same.

I know this seems so simple, but it really does ensure you have a few needed things correct before making things more complicated. I tried, and submitted a support ticket to Microchip.

I tried according to application note but to no avail. I’m trying to make a generic H-bridge for low frequencies and keep running into the wall.