1201 views|0 replies

6555

Posts

0

Resources
The OP
 

Simulation and MCU source code of sawtooth wave generated by DAC0832 [Copy link]

The MCU source program is as follows: /**************** writer:shopping.w ******************/ #include
#include
#define uint unsigned int
#define uchar unsigned char
#define DAC0832 XBYTE[0xfffe]

void DelayMS(uint ms)
{
         uchar i;
        while(ms--)
        {
                 for(i=0;i<120;i++);
        }
}

void main()
{
         uchar i;
        while(1)
        {
                 for(i=0;i<256;i++)
                DAC0832 = i;
                DelayMS(1);
        }
}

This post is from Microcontroller MCU
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list