



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The development of an online programming capable card for the 8051 microcontroller. The project involves designing and building a pcb, as well as writing software for both the pc and microcontroller. The microcontroller uses a shared memory to store user programs, which are transferred from the pc through a serial port. The document also covers the use of altium software for creating the pcb and provides a hardware list and cautions for the project.
Typology: Thesis
1 / 5
This page cannot be seen from the preview
Don't miss anything!




Online programming capable card is a kit developed to reprogramme a microcontroller without taking it out of the circuit. The programme is loaded from PC through serial port and is stored in the RAM. After complete transfer of the programme to the RAM , the control is transferred to that location from where the programme starts. We divided our work in two parts.
1 – hardware portion i-e building PCB. 2 – software portion - writing programme for both ends ( PC and microcontroller )
8051 micro controller has 16 address lines. Hence we can access 64k of internal or external memory. We will have to use the external memory, because we are giving flexibility to user so that he can store large programmes. We divided this array of memory into four parts.
Ljmp 2000h;
The user programme might use some memory array for storing data. For this purpose we have reserved 16k of RAM from address A000h to DFFFh. The final 8k from E000h to FFFFh is reserver for external peripheries. Port extenders can be used to increase its capacity also.
Making PCBs for circuits can help you to reduce the time you spend building circuits, especially if you are producing multiple units, as you only need to follow a parts placement diagram (there's no longer any need to worry about specific interconnections). After you've prototyped and tested your circuit design, creating a PCB will provide a sturdy and reliable backbone for your circuit and will give your project a professional finished quality.
You can choose any software for making PCB. Such as Proteus Altium etc.We decided to use ALTIUM. Making schematic first helps because ALTIUM will show you clearly if you make any mistakes with the PCB draw schematic in Altium and it will auto route it for you. Keep clearance between wires not less than 1mm and wire width not less than .5mm. restrict the software to make connections with pads only from bottom side, because soldering on the top side with pads is so much time consuming. After auto routing make some manual changes in the auto routed PCB layout to minimize vias and wires in the circuit. It might seem useless but it can help you considerably reducing the effort which will you make after wards. Never forget to make reference points on the PCB layout. Mirror the top side in print lay out. Print it out onto some sticker sheet. Then quickly take this paper, cut out your design and place it face down onto some blank PCB board. Then use an iron and press the design on to the board. Ensure all parts of the design make good contact with the blank PCB. Keep it pressed for at least 15 minutes. Repeat this process for the other side also. Make sure exact alignment of both the sides. So that all pads and vias coincide precisely. Then remove paper from both sides. Be sure not to remove any of the black ink traces because these are what stop the acid in the etching process. Now drill out the holes as on your requirement. Now the PCB is ready for etching. Get some etchant (acid, ferric chloride) and just follow the instructions for the dilution level. Add boiling water from a jug. And slowly swirl or rock the bowl around. The liquid must be always moving over the copper board to get it to etch properly. Now give it a rinse in cold water and scrub the black ink off the PCB with a scratchy dish cleaner thing or steel wool. Then all you need is to start mounting the components.
Protocol
Micro controller will scan its serial port for arriving data. After receiving the start byte it will send an ACK byte. After this has been done it will store the received data in shared memory till the end of file EOF byte. After receiving this EOF , the command will be transferred to the shared memory and the user progamme will be executed. The flow chart diagram is given below.
Hardware required
The following hardware components are required.
Discription of each component can be seen from data sheets. The bypass capacitors are used to cope with the noise randomly produced in the board. Clean rusted pins of ICs if any, because the sometimes cause disconnection of pins.
Cautions
Mistakes
Send ACK transfer hold to RAM