TTP913C Lcd Driver Demo Use C8051F330
源代码在线查看: delay.#2
#include
//-----------------------------------------------------------------------------
// Subroutine : Software delay
// Function : DELAY=514*(Machine Cycle)
// =2+(2*k)
// Output : NONE
//-----------------------------------------------------------------------------
void delay(void)
{
int k;
for(k=0;k }
//-----------------------------------------------------------------------------
// Subroutine : Software delay
// Function : DELAY=count*100*(Machine Cycle)
// =count*[2+(2*48)+2]
// Input : count
// Output : NONE
//-----------------------------------------------------------------------------
void delay_100t(int count)
{
int i,k;
for(i=0;i for(k=0;k }
//-----------------------------------------------------------------------------
// Subroutine : Software delay
// Function : DELAY=count*10002*(Machine Cycle)
// =count*{2+[2+(2*48)+2]*j}
// Input : count
// Output : NONE
//-----------------------------------------------------------------------------
void delay_10kt(int count)
{
int i,j,k;
for(i=0;i for(j=0;j for(k=0;k }