Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <project.h>
- #include <stdio.h>
- int main()
- {
- int16 test=16789;
- uint16 utest = (uint16)test;
- uint8 hibyte = utest>>8;
- uint8 lowbyte = utest;
- CyGlobalIntEnable; /* Enable global interrupts. */
- UART_Start();
- for(;;) //Send the same info again and again
- {
- UART_ClearTxBuffer();
- UART_PutChar(hibyte);
- UART_PutChar(lowbyte);
- CyDelay(500);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement