PIC 16F877A  to  PIC 18F4525  Microprocessor Upgrade


Informazioni Generali

Il PIC 18F4525 è pin to pin compatibile col PIC 16F877A ( 40-pin PDIP ), ma può fornire circa 10 MIPS @ 40Mhz. Inoltre il 18F4525 ha 3968 bytes di memoria RAM interna che permettono la lettura senza interruzione ed il buffering di una linea completa del sensore ICX429ALL  ( 795 x 2 bytes ), prima di cominciare ad inviare i dati al PC attraverso il collegamento USB.

DataSheet : PIC 18F4525

General Info

PIC 18F4525 is pin to pin compatible to PIC 16F877A ( 40-pin PDIP ), but it can deliver almost 10 MIPS @ 40Mhz. Furthermore the 18F4525 has 3968 bytes of internal RAM that allow continuous readout and buffering of a complete line of the ICX429ALL sensor ( 795 x 2 bytes ), before sending data to the PC programm via the USB connection.

DataSheet : PIC 18F4525

Programmer (Software)

Per programmare il  18F4525 useremo il programmatore MeProg di MeLab.
La versione beta di MeProg può essere scaricata gratuitamente dal sito web di MeLab ( la versione corrente è la 4.223 )
Per utilizzare MeProg, dopo aver scaricato il software, è necessario lanciare il programma di setup.
Non è necessaria nessuna configurazione, perchè il programma riconoscerà automaticamente il programmatore hardware utilizzato.
Il 18F4525 deve essere selezionato come PIC target da un menù a tendina.
Cancellazione, lettura e programmazione avvengono velocemente e senza problemi.


Programmer (Software)

To program the 18F4525 we will use MeLab's programmer MeProg.
MeProg beta version can be dowloaded for free from MeLab's web site. ( current version is 4.23 )
After downloading this software and running a setup program, MeProg  is ready to be used.
No configuration is required, because this programmer will automatically detect the hardware program in use.
18F4525 must be selected as the target PIC from a drop down menu.
Erasing, reading and programming are straightforward and quite fast.

Programmer (Hardware)


Per  caricare il bootloader sul nuovo 18F4525, è possibile usare lo stesso programmatore hardware utilizzato per il 16F877A.
Questo programmatore è stato sviluppato da  Claudio Flin
Sono comunque necessarie un paio di piccole modifiche

1. Per supportare il programmatore software  MeProg di MeLab, deve essere interrotto il collegamento tra D4 e D3 ( attraverso il SN74LS07 ), come illustrato nello schema allegato ( interruttore aperto):

Programmer (Hardware)


To load the bootloader on the new 18F4525, it's possible to use the same hardware programmer used  to program the 16F877A.
This programmer was developed by Claudio Flin
However two minor modifications are required

1. In order to support MeLab's software programmer MeProg , connection between D4 and D3 ( via the SN74LS07 ) must be cut as shown in the attached schematic (switch open).
prog
2. Per programmare in sicurezza il 18F4525, in modalità  high voltage , l' high voltage deve essere abbassato da 13.2 V a 12 V , eliminando i due diodi sul pin di massa del regolatore 7812 :
2. To safely use high voltage programming in the 18F4525 , high voltage must be lowered from 13.2 V to 12 V removing the two diodes on the ground pin of the 7812 regulator :

ts5_2
I pin di programmazione del 18F4525  ( SDA e SCK ) sono il 40 e il 39, come per il 16F877A
18F4525 programming pins ( SDA and SCK ) are 40 and 39 as for the 16F877A

ts5_3

Bootloader


Tiny Bootloader

Giorgio ha compilato questa versione del Tiny-Bootloader per il 18F4525 @ 20Mhz, con  Baud Rate di 115200.

Bootloader


Tiny Bootloader

Giorgio compiled  this version of the Tiny-Bootloader for a 18F4525 @ 20Mhz  with a Baud Rate of 115200.

Work in progress !!!!










UAI CCD Camera Project
Last Updated : 30 Mar 08 - Marco Paolilli