Lab Nine Lab09 Instructions

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 1

DownloadLab Nine Lab09 Instructions
Open PDF In BrowserView PDF
Lab 9
Debouncing, EEPROM Data Memory, Flash EEPROM Program Memory,
and Indirect Addressing
This lab familiarizes the student with switch debouncing software, EEPROM data memory,
Flash EEPROM program memory modification during program execution, and indirect
addressing.
1.

Create a new project with lab09.asm. Connect a push button to RB0. Connect eight LEDs to
the PORTC pins. Run the program. Every time you press the RB0 button the next PORTC
LED should turn on. However, the switch bounces, so sometimes when you press the RB0
button the LEDs “skip.”

2.

Select the View→EEPROM menu item in MPLAB. You can double-click an EEPROM
byte to change the EEPROM data in the PIC. You can also right-click in the EEPROM
window, and then select the Fill Memory menu pop-up, to fill an entire block of EEPROM.

3.

Select the Configure→Configuration Bits menu item in MPLAB.
a) The Flash Program Write Enable bit (the WRT bit in the configuration word) specifies
whether or not the EECON registers can be used to write to program memory. See page
120 in the data sheet for more information.
b) If Flash Program Write is enabled, the Code Protection bits (CP1:CP0) in the
configuration word specify which program memory addresses can be written with the
EECON registers.
c) Select the PICkit as the debugger tool in MPLAB. Then select the Debugger→Settings
menu item. Unselect the Preserve device EEPROM checkbox. This allows you to
program EEPROM at the same time that you program the PIC.

Page 1 of 1



Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.5
Linearized                      : Yes
Author                          : Dan Simon
Comments                        : 
Company                         : Cleveland State University
Create Date                     : 2017:04:10 02:34:33-04:00
Modify Date                     : 2017:04:10 02:34:34-04:00
Source Modified                 : D:20170410063415
Subject                         : 
Language                        : EN-US
Tagged PDF                      : Yes
XMP Toolkit                     : Adobe XMP Core 5.4-c006 80.159825, 2016/09/16-03:31:08
Metadata Date                   : 2017:04:10 02:34:34-04:00
Creator Tool                    : Acrobat PDFMaker 11 for Word
Document ID                     : uuid:07763c7b-9432-4fc5-82e5-91928fa57bff
Instance ID                     : uuid:2ecb442e-ffca-4090-897d-96843b4632b5
Format                          : application/pdf
Title                           : Lab Nine
Description                     : 
Creator                         : Dan Simon
Producer                        : Adobe PDF Library 11.0
Keywords                        : 
Page Layout                     : OneColumn
Page Count                      : 1
EXIF Metadata provided by EXIF.tools

Navigation menu