Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PLEASE HELP: im a student in Australia, need a pic program.

Status
Not open for further replies.

zmanultra

Member level 2
Member level 2
Joined
Mar 20, 2004
Messages
48
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,288
Location
Australia
Activity points
524
need orf card

has any body please have a program for smart card, my whole year project is to do a locking system for a university, i need some sample code its the first time doing pic please i need sample code of how to program the smartcard and the reader pleeeeeeeeeease somebody.

i have to use the following smart card and reader

a pic 16F84 and a 24C16 EEPROM
its a gold wafer smart card
supplied by (silicon chip)

please somebody has to help me im gona be dead. :( [/code]
 

Re: PLEASE HELP: im a student in Australia, need a pic progr

some initial things how to "feed" a goldwafer with (prepared) code:

a normal "gold wafer" card has ISO connector like a credit card. It is not possible to address the eeprom direct, i.e. direct storing information in the eeprom, as the connectors do not lead "outside". A regular smart card uses only 6 of the 8 contact pods to communicate with the rest orf the world. There are a few cards available which lead the contacts from/to EEPROM outside the card. They use the additional contact pods #4 and #8, most popular are the AVR based smart cards.

----
Back to PIC goldwafer: Instead of direct addressing, the following concept will be used: there are 3 different types of software you want to put into the card:
#1 is the regular assembler based code which will drive the processor and which is stored within the PIC chip
#2 is the code which should be stored into the eeprom (like tables of any information)
#3 is a so called "loader" software, which resides temporary in the processors memory area

The Loader concept works as follows: Initially, the card (the memory within the PIC) will be programmed with the "loader". Its only task is to accept commands from external contact pods which proceed something like: take these (whatever blocksize) bytes and programm them into the eeprom. After the eeprom is filled with the code of #2, the loader has done his work. THEN the card will be (re) programmed with its regular processor code and voila - everything is fine.

Some popular programms like "chipcat" or "twoprog" doing this task automaticly for you: they have their own "loader" routine, and you simple have to give them code #1 and #2 to let them automaticly do the rest. As programming device you may use an do-it-yourself programmer or buy some device for a cheap price (20-100 USD)

so you need:

1:: a smarttcard
2:: a programmer device
3:: programming software

As i read your post, 1:: is available, and 3:: might be downloaded from somewhere (use google to find a location)
-----

Nevertheless, you need "prepared" code to feed the card with. Therefore, you need the "normal" things in this area:
4:: An understanding about HOW the smartcard should be reached at a protocoll level (means: which commands will you give to the smartcard to perform which action?
If it should be not too proprietary, then an understanding of ISO smartcard communication protocol (ATR, NANO etc) migt be helpfull and gives you a rough idea about a common interface implementation
5:: an understanding of what your software within the card should do and how it should work
6:: Some understanding of the processor-design and assembler code of the processor
7:: probably a C compiler will be available, enables you a little bit faster design of the algorithm you want to implement
8:: There are also PIC simulators available simulating the pic processor etc


baecause of step 8:: so you do not necessary need to concentrate for programmer hardware in a first step. Try to get step 4:: - 8:: instead. And if everything works, the year is finished and you might buy device 2::



Hope this helps as first info. Take also a look at
**broken link removed**
offers you some helpfull links, and probably some (german) code examles (but most are AVR based)
 

Re: PLEASE HELP: im a student in Australia, need a pic progr

:eek: :D thank u so much man ur a life saver thank u again dude


No ' thanks ' in the forum.
Warning!


--
makswell
 

Re: PLEASE HELP: im a student in Australia, need a pic progr

hi,
i need your help please , ihave smart card ,and i want to make interface between it and pc by vb, but i cant please help me
 

Re: PLEASE HELP: im a student in Australia, need a pic progr

Hi

first specify the type of smart card you have.

What is smart card part number?

Be clear and specific.

Regards
Gopi
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top