Re: nice feature...configurable ports....
Posted by:
Anonymous User
()
Date: April 21, 2007 10:05AM
thanks Claudio,
before to post a message in this forum I tried to detect into exe file the hex values of tipycal LPT address...BC03 F802 F803 .... I find them ordered, I've changed one of these into 68DC (my address) but there was a strange check probably, confirmed by CVS code of ponyprog(portint.cpp),
Ponyprog until 2.06f version doesnot detect well the parallel port, if it's nota standard address.
if the address is greater than 0x400, simply it's discharged.
my Port is 0xDC68 (Sunix PCI 4009A card) configured into LPT1 port.
Ponyprog 2.06f with AutoDetectPorts=YES doesn't detect the port....but if I specify AutoDetectPorts=NO , the port has been detected and I'm sure it's wrong address.
Wow in a few days an user has posted here a link with the new 2.06g binary file compiled (pony2007 ??) with new modification I suggested to you....(at the moment I dont have VC++ installed)) I tried it and I can confirm that your modification works well.
for my STK200 home-made dongle my configuration is this:
//____________________________________
LanguageCode=C
PowerUpDelay=200
SPIResetPulse=100
SPIDelayAfterReset=50
BigSPIPageWrite=16
ATMegaPageWriteDelay=50
AVRByteWriteDelay=20
AVREraseDelay=50
I2CBusSpeed=NORMAL
SPIBusSpeed=NORMAL
MicroWireBusSpeed=NORMAL
PICBusSpeed=NORMAL
SDEBusSpeed=NORMAL
LogEnabled=YES
SoundEnabled=YES
VerifyAfterWrite=YES
ClearBufferBeforeLoad=NO
ClearBufferBeforeRead=NO
AutoDetectPorts=NO
I2CBaseAddress=0xA0
I2CBusPageWrite=16
DeviceType=ATmega32
COMPorts=3F8,2F8,3E8,2E8
LPTPorts=DC68,378,278,3BC
InterfaceType=AvrISP-I/O
PortNumber=1
ResetPolarity=TRUE
ClockPolarity=TRUE
DOutPolarity=TRUE
DInPolarity=TRUE
BogoMipsX1000=349216
//______________________________
Now its' possible to modify the address.
First: I made AutoDetectPorts=NO to avoid problems.
Second: I added my personal Address 0xDC68 in the first position, because I have LPT1 port.
LPTPorts=DC68,378,278,3BC
Third: PortNumber=1 ; LPT1 Port
Start PonyProg, check if all hardware settings are ok and after you make a Calibration.
After this I checked my little board with ATMega32 device and STK200 Parallel cable.
Without problems.
Nice idea to explain this improvement into help FAQs .
thanks
This little feature is a big step to help people with a "exotic" card.(newer PC or laptop doesn't have LPT or serial Port...)
Saluti,
Callisto.