
Originally Posted by
Macgman2000
Hello All,
I have looked high and low for 16F1827 code examples. Basically I am looking for a template that initializes common hardware features I want to use...not the other 400 pages of features in the data sheet.
I want to use the ADC, HWPWM1 and 2, and some digital only I/O's. Some how I don't think copying and pasting my old 16F877A code will work. I think the configuration registers don't have the same naming convention.....or do they? I suppose I could drop the code in, sit back and gawk at the never ending list of errors.....I would rather not though, there should be a better way
Nick
Hi Nick,
go to your MPASM Suite root directory and find the file named P16F1827.inc , open it using either notepad or MCS. There you will find all the available configs, which usually are near the bottom, also; you will see all the available registers too.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks