![]()  | ![]()  | |||
| TAMS / Java / Hades / applets: contents | previous | next | ||||
| Hades Applets contents visual index   introduction  std_logic_1164  gatelevel circuits  delay models  flipflops  adders and arithm...  counters  LFSR and selftest  memories  programmable logic  state-machine editor  misc. demos  I/O and displays  DCF-77 clock  relays (switch-le...  CMOS circuits (sw...  RTLIB logic  RTLIB registers  Prima processor  D*CORE  MicroJava  Pic16 cosimulation    PIC16C84 dem...    fast PIC16C8...    interrupt-dr...    on-chip timer    EEPROM access    EEPROM access    RS-232 trans...    software RS-232    software RS-...    chronograph    MIDI footswi...    MIDI footswi...    MIDI footswi...    MIDI organ p...    MIDI organ p...    ultrasonic r...    ultrasonic r...    "Phrasendres...    "mastermind"...  Mips R3000 cosimu...  Intel MCS4 (i4004)  image processing ...  [Sch04] Codeumsetzer  [Sch04] Addierer  [Sch04] Flipflops  [Sch04] Schaltwerke  [Sch04] RALU, Min...  [Fer05] State-Mac...  [Fer05] PIC16F84/...  [Fer05] Miscellan...  [Fer05] Femtojava  FreeTTS | PIC16C84 EEPROM access demo
Circuit Description
This applet demonstrates the demo84 application
from Arizona Microchip, 
which runs a selftest for the on-chip EEPROM memory 
of the PIC16C84 microcontroller.
Because every EEPROM write access takes many clock cycles to complete,
the program uses interrupts to wait for the write to finish.
Because the PIC simulation model also implements this delayed writing,
the simulation might seem to run very slowly - please be patient,
or use the GUI to watch the program operation.
 The program uses two endless loops. Each iteration of the outer loop increments an 8-bit counter value. The inner loop tries to write that counter value into all EEPROM locations. Once that value has been written to all EEPROM locations successfully, the value is also output on port B. Then, the counter value is incremented and the process repeats. If an error occurs during EEPROM write, the LEDs on port B are flashed approximately once per second. (However, this situation cannot arise in the simulation, because the simulated EEPROM write always succeeds.) 
  | |||
| Print version | Run this demo in the Hades editor (via Java WebStart) | ||||
| Usage | FAQ | About | License | Feedback | Tutorial (PDF) | Referenzkarte (PDF, in German) | ||||
| Impressum | http://tams.informatik.uni-hamburg.de/applets/hades/webdemos/72-pic/10-demo84/demo84.html |