

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


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:
#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(){