Hey. This some pid code for the atmega88 that I once used to control a heater. It s purpose
is pretty specific, and I only wrote it to work on the mega88, so the code itself won t be too useful. It is
a good place to start if you re trying to use or figure out pid though.
#ifdef _AFXDLL
Enable3dControls() // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic() // Call this when linking to MFC statically
#endif
CPreviewDialogDlg dlg
m_pMainWnd = &dlg
int nResponse = dlg.DoModal()
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application s message pump.
return FALSE
}
This program demonstrates operation of ADC0 in polled mode. The ADC0 is
// configured to use writes to AD0BUSY as its start of conversion source and
// to measure the output of the on-chip temperature sensor. The temperature
// sensor output is converted to degrees Celsius and is transmitted out UART0
This program demonstrates operation of ADC0 in polled mode. The ADC0 is
// configured to use writes to AD0BUSY as its start of conversion source and
// to measure the output of the on-chip temperature sensor. The temperature
// sensor output is converted to degrees Celsius and is transmitted out UART0
TRAFFIC LIGHT CONTROLLER using C51 and RTX-51 tiny,This program is a simple Traffic Light Controller. Between start time and end time the system controls a traffic light with pedestrian self-service. Outside of this time range the yellow caution lamp is blinking.
This directory contains the Genetic Algorithm Optimization Toolbox for
Matlab
To use this, if you are local to NCSU and have AFS access to this
directory, simply extend the matlab path using the following command.
You can also place this command in a file called startup.m. Everytime
you start Matlab in the directory containing this file, the path will
always be extended.