Electronics > Projects, Designs, and Technical Stuff
Small package decade counter?
<< < (4/5) > >>
rcbuck:
Thanks Ian. Like you, I didn't see anything that indicated you couldn't drive both TMR0 and the CLC module. But Microchip's documentation is notoriously bad about leaving out critical information. Or inserting incorrect information.

The only way to confirm what works is to give it a try.
JPortici:
FWIW it's not THAT hard to solder a QFN with 0.5mm pitch.. i find it much harder to do a 0.5mm TQFP. You just need a fine tip on the iron


--- Quote ---But Microchip's documentation is notoriously bad about leaving out critical information.
--- End quote ---
It's not. You haven't read many datasheets if you think that.

--- Quote ---Or inserting incorrect information.
--- End quote ---
See above.

Another idea: Could you use the NCO module? Once you set the accumulator increment you're good to go, no need to reload
Ian.M:
Nope.  I considered the NCO, but its got a 20 bit accumulator and only a 16 bit increment register so there's four overflow bits you cant directly increment, therefore  its max output frequency in pulse mode is fractionally under 1/16 of the input frequency, and for an exact integer division ratio the best it can do is 1/32.    It also doesn't work out to an exact ratio if you try to divide by 200.

Its also a great pity Timer 2 doesn't have an external clock inut and Timer 0 doesn't have a period register
JPortici:
Ah pity. True that, but the 10F322 is baseline for a reason >:D

What about the ATTINY 10 then? i see that these are the new parts in SOT-323 package, apparently it has a timer with period match/output compare and external clock input
rcbuck:

--- Quote ---It's not. You haven't read many datasheets if you think that
--- End quote ---
Maybe notoriously was a little heavy handed. However, over the last couple of years the copy/paste errors seem to have increased.

https://www.microchip.com/forums/m1064174.aspx?high=datasheet+errors

https://www.microchip.com/forums/m1075692.aspx

https://www.microchip.com/forums/m1071093.aspx

https://www.microchip.com/forums/m896832.aspx?high=datasheet+errors

https://www.microchip.com/forums/m1012037.aspx?high=datasheet+errors

Maybe they are trying to do too much with too little resources.

About 6 months ago I designed a board using the PIC16F1719. Section 13.0 says
--- Quote ---All pins on all ports can be configured to operate as Interrupt-on-Change (IOC) pins.
--- End quote ---
I made the mistake of interpreting that to mean ALL port pins have IOC capability. I did not read the entire section about each individual PORTx operation. I designed the board and ordered prototypes. When I started writing the program for the board that is when I discovered that none of the PORTD pins have IOC. As luck would have it, I had used one of the PORTD pins as part of the IOC operation. Luckily I was able to work around it by just checking the switch each time through the main loop. I realize it was my mistake by not reading the additional 27 pages about each of the I/O ports. Now I do. It is just another example of a copy/paste error.
Navigation
Message Index
Next page
Previous page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod