background image

EEPROM

  is  short  for 

Electrically  Erasable 

Programmable  Read  Only  Memory

.  It  is 

usually  a  secondary  storage  memory  in  devices 
containing data that is retained even if the device 
looses  power  supply.  EEPROMs  come  with  parallel 
or  serial  interface  to  the  master  device.  Because 
of  the  ability  to  alter  single  bytes  of  data,  EEPROM 
devices  are  used  to  store  personal  preference  and 

configuration  data  in  a  wide  spectrum  of  consumer, 

automotive,  telecommunication,  medical,  industrial,  and 
PC applications. 
EasyPIC

 v7 supports serial EEPROM which uses 

I

2

C communi-

cation interface

 and has 

1024 bytes

 of available memory. Board 

contains  socket  for  serial  EEPROMs  in  DIP8  packaging,  so  you  can 

easily exchange it with different memory size EEPROM IC. EEPROM itself 

supports single byte or 16-byte (page) write and read operations. Data rates 
are dependant of power supply voltage, and go up to 

1 MHz

 with 5V power supply, 

and 

400 kHz

  for 3.3V power supply.

In  order  to  connect  I

2

C  EEPROM  to  the 

microcontroller  you  must  enable 

SW4.7

  and 

SW4.8

 switches, as shown on 

Figure 18-1

.  

1kΩ

 

pull-up resistors necessary for I

2

C communication 

are already provided on 

SDA

 and 

SCL

 lines once 

switches are turned on. Prior to using EEPROM 
in  your  application,  make  sure  to  disconnect 
other  peripherials,  LEDs  and  additional  pull-up 
or  pull-down  resistors  from  the 

RC3

  and 

RC4

 

communication  lines  that  could  interfere  with 
the data signals and cause data corruption.

I

2

C is a multi-master serial single-ended bus that is used to attach low-speed peripherals to computer or embedded 

systems. I²C uses only two bidirectional open-drain lines, 

Serial Data Line (SDA)

 and 

Serial Clock (SCL)

, pulled 

up with resistors. Data and clock lines are driven with a master device. Up to 112 slave devices can be connected 
to the same bus. Each slave must have a unique address.

I

2

C EEPROM

DATA BUS

ON

SW4

DIP SW 8

VCC-5V

RA0

RA1

RA2

RA3

RC2

RC3

RC4

C24

100nF

VCC-MCU

1
2
3
4

DIP SKT 8 (24C08) 

VCC-MCU

R4

1K

7

8

6
5

VCC-MCU VCC-MCU

VCC-MCU

R5

1K

EEPROM-SCL

EEPROM-SDA

A0

A1

WP

A2
VSS

SDA

SCL

VCC

U8

Enabling I

2

C EEPROM

What is I

2

C?

Figure 18-1: 
Activate SW4.7 and 
SW4.8 switches 
to connect 
microcontroller 
I

2

C lines to Serial 

EEPROM.

page 31

Figure 18-1:
Schematic of
I

2

C EEPROM 

module

modules

Содержание EasyPIC V7 connectivity

Страница 1: ...Supports 3 3V and 5V devices Dual Power Supply Easily add extra boards mikroBUS sockets Four connectors for each port Amazing Connectivity microcontrollers supported The ultimate PIC board Fast USB 2...

Страница 2: ...ece we had put all of our energy creativity and sense of what s best for an engineer I ve personally assembled hundreds of early EasyPIC boards myself with my home soldering iron Today we present you...

Страница 3: ...good to know Piezo Buzzer Input Output Group Programming software ADC inputs On board programmer Dual power supply Supported microcontrollers Touchpanel controller Additional GNDs Introduction Power S...

Страница 4: ...new board just as we are EasyPIC development Team EasyPIC v7 is all about connectivity Having four different connectors for each port you can connect accessory boards sensors and your custom electroni...

Страница 5: ...al To Analog Converter DAC support for Capacitive Touch Sensing using Charge Time Measurement Unit CTMU three 8 bit timers and four 16 bit timers It also has pair of CCP Comparators and MSSP modules w...

Страница 6: ...7 23V AC Use jumper J6 to specify which power source you are using and jumper J5 to specify whether you are using 5V or 3 3V microcontroller Upon providing the power using either external adapter or...

Страница 7: ...d using screw terminals place jumper J6 in EXT position and place jumper J5 in 5V or 3 3V position depending on which microcontroller you are using You can then plug in the adapter cable as shown on i...

Страница 8: ...RB3 RA6 MCU RA7 MCU RB7 MCU RB6 MCU RB5 RB4 VCC MCU SKT5 DIP SKT 20 SKT6 DIP SKT 14 C13 100nF VCC MCU C42 100nF VCC MCU RB7 RC7 RC6 RC3 RC4 RC5 MCLR RA3 RA4 MCU RA5 MCU RB6 RB5 RB4 RC2 RC1 RC0 RA2 MC...

Страница 9: ...orrectly and press the microcontroller until it is completely plugged into the socket as shown in Figure 4 5 Figure 4 6 RA6 and RA7 as I O pins when using internal oscillator Figure 4 3 Place both end...

Страница 10: ...line is routed to the correct socket for your microcontroller If you are using the default PIC18F45K22 jumpers are supposed to be set for DIP40 as shown below Jumpers J8 and J9 are used to select PGC...

Страница 11: ...ACTIVE R69 6K8 LD40 VCC 5V DATA 1 2 3 4 VCC D D GND CN2 USB VCC BRD CN28 RJ12 MCU PGC MCU PGD MCU VPP 1 2 3 4 5 6 ICD C18 100nF VCC BRD Figure 5 1 mikroProg block schematics EasyPIC v7 is equipped wi...

Страница 12: ...ou should be able to locate the driver setup file Double click on setup file to begin installation of the programmer drivers Welcome screen of the installation Just click on Next button to procede Dri...

Страница 13: ...re has intuitive interface and SingleClick programming technology To begin first locate the installation archive on the Product DVD After downloading extract the package and double click the executabl...

Страница 14: ...s powerful tool with intuitive interface and convenient set of commands will enable you to track down bugs quickly mikroICD is one of the fastest and most reliable debugging tools on the market Suppor...

Страница 15: ...within it Step Over F8 Executes the current program line then halts If the executed program line calls another routine the debugger will not step into it The whole routine will be executed and the deb...

Страница 16: ...necessary to use a RS 232 Transceiver circuit such as MAX3232 as shown on Figure 6 1 DATA BUS CN37 1 6 5 9 1 6 5 9 Bottom view SUB D 9p R32 100K VCC MCU VCC MCU U4 MAX3232 C1 V C1 C2 C2 V T2 OUT R2 I...

Страница 17: ...8 9 10 11 12 13 14 28 27 26 25 24 23 22 21 20 19 18 17 16 15 U2 FT232RL TXD DTR RTS VCCIO RXD RI GND NC DSR DCD CTS CBUS4 CBUS2 CBUS3 OSCO OSCI TEST AGND NC CBUS0 CBUS1 GND VCC RESET GND 3V3OUT USBDM...

Страница 18: ...eaders Dedicated USB ON LED signalizesthepresenseofUSBconnection when the USB cable is inserted into the USB connector communication Figure 8 1 USB function disabled Figure 8 2 USB enabled on PORTC Fi...

Страница 19: ...ee groups of communication pins SPI UART and I2 C communication There are also single pins for PWM Interrupt Analog input Reset and Chip Select Pinout contains two power groups 5V and GND on one heade...

Страница 20: ...tional set of mikroBUS compatible Click Boards Almost each month several new Click boards are released It is our intention to provide the community with as much of these boards as possible so you will...

Страница 21: ...WiFi click GPS click Code Examples It easy to get your Click board up and running We provided the examples for mikroC mikroBasic and mikroPascal compilers on our Libstock community website Just downl...

Страница 22: ...ull up and pull down feature from the PORT pin 2 up position connects the resistor in pull up state to the selected pin 3 down position connects the resistor in pull down state to the selected PORT pi...

Страница 23: ...ith over 70 mikroElektronika accessory boards and enable simple connection There is one more IDC10 header available on the left side of the board next to the section with displays I O PORT group also...

Страница 24: ...half of the data byte interface is connected to GND D4 D7 Upper half of the data byte LED Connection with the backlight LED anode LED Connection with the backlight LED cathode We have allowed LCD bac...

Страница 25: ...Since PORTB is also used by 2x16 character LCD display you cannot use both displays simoutaneously You can control the display contrast using dedicated potentiometer P3 Full brightness display backli...

Страница 26: ...your finger to push it inside Figure 13 3 Now place GLCD with Touch panel into GLCD socket 1 2 3 Figure 13 5 Turn on switches 5 through 8 on SW3 to enable Touch panel controller Touchpanel is enabled...

Страница 27: ...for the 4 digit 7 segment display you have to turn on SW4 1 SW4 2 SW4 3 and SW4 4 switches Digit select lines are connected to RA0 RA3 pins on the microcontroller sockets while data lines are connecte...

Страница 28: ...ter device to easily identify all devices sharing the same interface EasyPIC v7 provides a separate socket TS1 for the DS1820 Communication line with the microcontroller is selected with jumper J11 Ea...

Страница 29: ...sensor in TO 92 plastic packaging Readings are done with microcontroller using single analog input line which is selected with jumper J25 Jumper connects the sensor with either RE2 or RE1 microcontrol...

Страница 30: ...ed in maximum number of bits that resulting number occupies Most PIC microcontrollers have 10 bit resolution meaning that maximum value of conversion can be represented with 10 bits which converted to...

Страница 31: ...SW4 8 switches as shown on Figure 18 1 1k pull up resistors necessary for I2 C communication are already provided on SDA and SCL lines once switches are turned on Prior to using EEPROM in your applic...

Страница 32: ...buzzer driver to either RC2 or RE1 microcontroller pin Buzzerstarts singing whenyouprovide PWM signal from the microcontroller to the buzzer driver The pitch of the sound is determined by the frequen...

Страница 33: ...signals of on board modules GND is located between UART module and 4 digit 7 seg display GND is located in the cross section between DIP18 and DIP14 sockets GND is located between PORTD I O group and...

Страница 34: ...cts DVD download eng software compilers Development Systems EASYPIC_v7 If you want to find answers to your questions on many interesting topics we invite you to visit our forum at http www mikroe com...

Страница 35: ...l or product even if MikroElektronika has been advised of the possibility of such damages MikroElektronika reserves the right to change information contained in this manual at any time without prior n...

Страница 36: ...e experiencing some problems with any of our products or just need additional information please place your ticket at www mikroe com esupport If you have any questions comments or business proposals d...

Отзывы: