Docsity

Laboratory Assignment 7: Schematic - Notes | ECET 456, Lab Reports of Electrical and Electronics Engineering

Toggle sidebar
bg1
Purdue University Calumet
ECET-456
Microcomputer Hardware Design
Page 1 of 3
Lab Assignment #7
Lab Objective:
Write a program in 16F88 which will outputs the binary number on PortB. Every Increment takes place
after one second delay.
PORT-A of the USB-1024LS will be attached with the Output Port (PORT-B) of the 16F88.
Write a program for PC which will take the input from PORTA of USB-1024LS and display the count on
the monitor.
Schematic:
KEYBOARD
PC
USB
USB-1024LS
16F88
PORT B
PORT A
PORT B
PORT A
pf3

Partial preview of the text

Download Laboratory Assignment 7: Schematic - Notes | ECET 456 and more Lab Reports Electrical and Electronics Engineering in PDF only on Docsity!

ECET-

Microcomputer Hardware Design

Lab Assignment

Lab Objective:

Write a program in 16F88 which will outputs the binary number on PortB. Every Increment takes place after one second delay. PORT-A of the USB-1024LS will be attached with the Output Port (PORT-B) of the 16F88. Write a program for PC which will take the input from PORTA of USB-1024LS and display the count on the monitor. Schematic:

KEYBOARD

PC

USB

USB-1024LS

16F

PORT B

PORT A

PORT B

PORT A

ECET-

Microcomputer Hardware Design

#include<iostream.h> #include<windows.h> #include<stdio.h> #include<conio.h> #include"C:\Program Files\Measurement Computing\examples\c\cbw.h"

void input();

void main(void) { int BoardNum=0, PortNum=0, Direction=0; PortNum=FIRSTPORTA; Direction=DIGITALIN; cbDConfigPort(BoardNum, PortNum, Direction); while (1) { input(); } }

void input(){