This is an assembly language program that reads up to 8 DS1820/DS18S20 devices connected to Port B pin 2 of an AT90S2313. The software uses the '2313s UART to communicate with a host computer at 9600,8,N,1. Two commands are inmplemented: R returns a list of the ROM codes of all the devices found and Tn (where n is a number between 0 and 7) returns the extended temperature, in degrees C, for the selected device.
The software uses two interrupts - one serial inputs and another for the 8 bit timer, used to generate delays. The software expects the 2313 to be running at 8MHZ, so delay constants will have to be changed for other clock rates.
This is my first "major" AVR assembly language project, and would appreciate comments on how to improve the code.
Frank
Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.