From: Beau E. C. <be...@ha...> - 2005-09-21 15:54:05
|
Hi - Over the past several months I have developed a few perl scripts that: 1) parse MicroChip's MPLAB(R) .dev and .inc files to XML, and, 2) convert the resulting XML to sdcc .h and .c device files. I have compiled sdcc with the added devices, compiled my software against the modified sdcc, and tested the results on chip. Although I have only tested on about a half dozen different processor types, I have reason to believe the scheme basically works. I have converted the following processors: 1220 1320 2220 2320 2331 2410 2420 242 2431 2439 2455 2480 248 2510 2515 2520 2525 252 2539 2550 2580 2585 258 2610 2620 2680 4220 4320 4331 4410 4420 442 4431 4439 4455 4480 448 4510 4515 4520 4525 452 4539 4550 4580 4585 458 4610 4620 4680 6310 6390 6410 6490 6520 6525 6585 6620 6621 6680 6720 8310 8390 8410 8490 8520 8525 8585 8620 8621 8680 8720 The 'j' device .dev files are giving me fits because the sfr bits are not defined the way the others are, so I have omitted them for now. About a dozen other devices I did't convert because mpwinasm/gpasm don't handle them. Finally, I had to omit several devices because there were no .dev and .inc files for them. Other than these exceptions, that's pretty much the whole pic18f family. The conversion is basied upon the current MPLAB (7.21). A nice side effect of the conversion to XML is that device programmers can use it to get the device specs ( I use it in my programmer which is a perl script that talks to a paraller-port programmer - an El Cheapo I built.) My question is: would you ( I guess Raphael is doing most of the pic16 ) like to have my scripts and converted files? If so, what's the best way to get them to you? Aloha => Beau; be...@ha... 2005-09-21 |