This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

serial port and timer

Hi,

I have a problem.I must send through the serial port the number 1 and the number 0 every second using a timer of the c167cs. Would someone know me to help?

Parents
  • Yes, I thought as much, just wanted to point this out for other users.

    I would just make a comment to the generated code for the C166 is usually (from a code standpoint) not as efficient when using a byte variable over a word variable (usually you end up with an extra instruction).

    Per as you stated the user must decide what memory allocation is important for their application. I also appreciate your suggestion of an add instruction instead of an if statement.

Reply
  • Yes, I thought as much, just wanted to point this out for other users.

    I would just make a comment to the generated code for the C166 is usually (from a code standpoint) not as efficient when using a byte variable over a word variable (usually you end up with an extra instruction).

    Per as you stated the user must decide what memory allocation is important for their application. I also appreciate your suggestion of an add instruction instead of an if statement.

Children
No data