#include <stdio.h>
#include <string.h>
#include <eZ8.h>
#include <sio.h>
#include "driver.h"
#include "main.h"
Go to the source code of this file.
Functions | |
char | getinput () |
Low nibble of a char. Reveives a character from the serial line. | |
char | chartohex (unsigned char tempchar) |
Converting a char into a number. | |
void | bytetotwoascii (unsigned char tempdata) |
Converts a byte in to 2 nibbles, and send it to the PC. | |
void | main () |
Main function. | |
Variables | |
char | mych |
char | chararray [] = "0123456789abcdef" |
Character received from the PC. | |
char * | loc |
String to hold hex values. | |
unsigned char | datahigh |
Hold the position of a hex value in the chararray[]. | |
unsigned char | datalow |
High nibble of a char. |
|
Converts a byte in to 2 nibbles, and send it to the PC. Function to convert a byte into 2 nibbles, and each nibble converted into a hex value. Each nibble is send to the PC through the serial connection. Definition at line 64 of file main.c. References chararray, datahigh, and datalow. Referenced by main(). |
|
Converting a char into a number. Function to convert a hex value ranging from 0 - f into a number ranging from 0 - 15. Definition at line 51 of file main.c. References chararray, and loc. Referenced by main(). |
|
Low nibble of a char. Reveives a character from the serial line. Function to receive a single character from the RS232 connection to the PC. Definition at line 38 of file main.c. References mych. Referenced by main(). |
|
Main function. The main function. This function sets up the AD bus, Control bus and the serial port. Main takes care of the principal functionallity in the system. Definition at line 79 of file main.c. References ADBUSOUT, adressingboard(), bussetup(), bytein(), byteout(), bytetotwoascii(), chartohex(), datahigh, datalow, delaycycles, getinput(), mych, singleadconverting(), and writeFlash(). |
|
Character received from the PC.
Definition at line 9 of file main.c. Referenced by bytetotwoascii(), and chartohex(). |
|
Hold the position of a hex value in the chararray[].
Definition at line 11 of file main.c. Referenced by bytetotwoascii(), and main(). |
|
High nibble of a char.
Definition at line 12 of file main.c. Referenced by bytetotwoascii(), and main(). |
|
String to hold hex values.
Definition at line 10 of file main.c. Referenced by chartohex(). |
|
Definition at line 8 of file main.c. Referenced by getinput(), and main(). |