PDA

View Full Version : 18f4523 support ?



J_norrie
- 1st March 2007, 18:47
I am interested in using this IC with its built in 12 bit AD but does picbasic pro support it?

thanks in advance.

This site has helped me a lot since I purchased picbasic pro in October I have been able to get some pretty good projects completed successfully.

thanks everyone.

HenrikOlsson
- 1st March 2007, 19:19
Hi,
Latest version of PBP is 2.47 but I can't seem to find the 18F4523 on the list of supported devices.

18F2523 on the other hand is supported. It too has a 12bit ADC, same amount of flash, same amount of RAM but less I/O. There may be other differences as well.

EDIT: Turns out I was wrong on this one. Although not listed as v2.47 does seem to have support for the 18F4523.

/Henrik Olsson.

mister_e
- 1st March 2007, 19:54
V2.47 support this PIC.

BUT the built-in command don't allow you to read 12 bit ADC directly... well i think, 10 or 8 bit are listed. Maybe DEFINE ADC_BITS 12 work....

Anyway, it's not hard to read/write the PIC register manually. Few lines of code, not much.

EDIT: DEFINE ADC_BITS 12 should work... IF NOT... here's a easy workaround


DUMMY var word
TwelveBitResult var word

START:
adcin 0,dUMMY
twelvebitresult.LOWBYTE=ADRESL
twelvebitresult.HIGHBYTE=ADRESH
lcdout $FE,1,#dummy,_
$FE,$C0,#TWELVEBITRESULT
PAUSE 250
GOTO START


I still prefer the read/write PIC register route..

HenrikOlsson
- 1st March 2007, 21:08
Hi Steve,
You're right.
I searched the suported device list for 4523 and couldn't find it. But looking in the PBP folder there sure is includes for 18F4523. Strange it's not listed as supported though....

Thanks for correcting me!

/Henrik Olsson.

mister_e
- 1st March 2007, 21:24
<body onload="setInterval('blinkIt()',1000)">

<script type="text/javascript">
function blinkIt() {
if (!document.all) return;
else {
for(i=0;i<document.all.tags('blink').length;i++){
s=document.all.tags('blink')[i];
s.style.visibility=(s.style.visibility=='visible') ?'hidden':'visible';
}
}
}
</script>
I find it in the MiroCodeStudio drop list. Did you looked at the Melabs website list?

here's the Melabs list quote with a subtle text enhancement around this PIC. Now try to find it once again ;)

Where is charlie?



Current PICmicroŽ MCU support:

PICBASIC PRO™ Compiler now supports ALL Microchip PICmicroŽ MCU families!

10F202, 10F206, 10F222: Limited support. (more information)

12C508(A), 12C509(A), 12F508, 12F509, 12F510, 12CE518, 12CE519: Limited support. (more information)

12C671, 12C672, 12CE673, 12CE674, 12F629, 12F635, 12F675, 12F683: Supported.

14000: Supported.

16C432, 16C433: Supported.

16C505, 16C54(AC), 16C55(A), 16C56(A), 16C57(C), 16C58(B), 16F505, 16F506, 16F54, 16F57, 16F59, 16HV540: Limited support. (more information)

16C554, 16C557, 16C558, 16C61, 16C62(AB), 16C620(A), 16C621(A), 16C622(A), 16C63(A), 16C64(A), 16C642, 16C65(AB), 16C66, 16C662, 16C67, 16C71, 16C710, 16C711, 16C712, 16C715, 16C716, 16C717, 16C72(A), 16C73(AB), 16C74(AB), 16C745, 16C76, 16C765, 16C77, 16C770, 16C771, 16C773, 16C774, 16C781, 16C782, 16C84, 16C923, 16C924, 16C925, 16C926, 16CE623, 16CE624, 16CE625, 16F616, 16F627(A), 16F628(A), 16F630, 16F631, 16F636, 16F639, 16F648A, 16F676, 16F677, 16F684, 16F685, 16F687, 16F688, 16F689, 16F690, 16F716, 16F72, 16F73, 16F737, 16F74, 16F747, 16F76, 16F767, 16F77, 16F777, 16F785, 16F818, 16F819, 16F83, 16F84(A), 16F87, 16F870, 16F871, 16F872, 16F873(A), 16F874(A), 16F876(A), 16F877(A), 16F88, 16F883, 16F884, 16F886, 16F887, 16F913, 16F914, 16F916, 16F917, 16F946, 16HV616, 16HV785: Supported.

17C42A, 17C43, 17C44, 17C752, 17C756(A), 17C762, 17C766: Supported.

18C242, 18C252, 18C442, 18C452, 18C601, 18C658, 18C801, 18C858, 18F1220, 18F1230, 18F1231, 18F1320, 18F1330, 18F1331, 18F2220, 18F2221, 18F2320, 18F2321, 18F2331, 18F2410, 18F242, 18F2420, 18F2423, 18F2431, 18F2439, 18F2450, 18F2455, 18F248, 18F2480, 18F2510, 18F2515, 18F252, 18F2520, 18F2523, 18F2525, 18F2539, 18F2550, 18F258, 18F2580, 18F2585, 18F2610, 18F2620, 18F2680, 18F2682, 18F2685, 18F4220, 18F4221, 18F4320, 18F4321, 18F4331, 18F4410, 18F442, 18F4420, 18F4423, 18F4431, 18F4439, 18F4450, 18F4455, 18F448, 18F4480, 18F4510, 18F4515, 18F452, 18F4520,
http://www.mister-e.org/Pics/Grimace.gif<blink>18F4523</blink> http://www.mister-e.org/Pics/GrimaceGrenouille.gif, 18F4525, 18F4539, 18F4550, 18F458, 18F4580, 18F4585, 18F4610, 18F4620, 18F4680, 18F4682, 18F4685, 18F6310, 18F6390, 18F6410, 18F6490, 18F6520, 18F6525, 18F6527, 18F6585, 18F6620, 18F6621, 18F6622, 18F6627, 18F6680, 18F6720, 18F6722, 18F8310, 18F8390, 18F8410, 18F8490, 18F8520, 18F8525, 18F8527, 18F8585, 18F8620, 18F8621, 18F8622, 18F8627, 18F8680, 18F8720, 18F8722: Supported.

18F24J10, 18F25J10, 18F44J10, 18F45J10, 18F63J11, 18F63J90, 18F64J11, 18F64J90, 18F65J10, 18F65J11, 18F65J15, 18F65J90, 18F66J10, 18F66J15, 18F66J60, 18F66J65, 18F67J10, 18F67J60, 18F83J11, 18F83J90, 18F84J11, 18F84J90, 18F85J10, 18F85J11, 18F85J15, 18F85J90, 18F86J10, 18F86J15, 18F86J60, 18F86J65, 18F87J10, 18F87J60, 18F96J60, 18F96J65, 18F97J60: Supported.

PicStic1, PicStic2, PicStic3, PicStic4, PicStic1 2k, PicStic2 2k, PicStic3 2k, PicStic4 2k, PicStic5: Supported.

rfPIC12C509AF, rfPIC12C509AG, rfPIC12F675F, rfPIC12F675H, rfPIC12F675K: Supported (select 12C509A or 12F675)

just had a fast look to it's datasheet...mm, looks like another nice PIC. One more with the A/D auto-acquisition time ...mmmm

HenrikOlsson
- 2nd March 2007, 06:12
Hi Steve,
No, actually, I couldn't reach the MELABS site at that moment so I looked at the Rentron site and couldn't find it on the device list there. On the other hand it does say:


Current PICmicro MCU support:

PicBasic Pro Compiler now supports ALL Microchip PICmicro MCUs!


Anyway, with the slight modification you made to the device list you quoted I was able to spot it.... ;-)

Thanks again.
/Henrik.

J_norrie
- 2nd March 2007, 09:01
Thanks for the help I will get one and try it and let you know how I get on.
I seems a good single chip solution to high resolution transducer logging etc.

great help

get back to you soon

john