Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <reg51.h>
- unsigned char x, y, cos;
- main()
- {
- while(1)
- for(x = 0; x <= 0xff; x++)
- {
- y=(x*x)>>8;
- cos=( y/12 * (1-y/30)) >> 8;
- cos= ( y/2 * (0-cos)) >> 8;
- P3= cos = (1-cos) >> 8;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement