PIC-PROJECTS.NET

Ideas, Circuits and Code

  • Increase font size
  • Default font size
  • Decrease font size
Welcome to PIC-Projects

Simple Multi-Tasking on Enhanced Mid-Range Devices

E-mail Print PDF

Writing an application as two or more tasks is often an easier way of writing control logic than trying to code it as part of a single 'super loop'. The design of the Enhanced Mid-Range devices incorporates a bigger stack, 16 levels deep compared to the normal 8 and a software accessible stack pointer. These features make it easy to create two separate tasks that can be switched with very few instructions.

Last Updated on Saturday, 20 August 2011 11:28 Read more...
 

MPASM Hints and Tips

E-mail Print PDF

Some useful hints and tips for MPASM coding.

Last Updated on Tuesday, 14 December 2010 10:25 Read more...
 

Bit Counting

E-mail Print PDF

How do you work out how many bits in a byte value are set? A simple enough problem with a variety of solutions that illustrate quite nicely the trade offs between code size and speed that often occur in assembler programs.

Last Updated on Wednesday, 10 August 2011 19:13 Read more...
 

Performing Computed Jumps

E-mail Print PDF

Goto and branch instructions generated by the assembler are always to fixed location determined at 'compile time' but what if we want to goto to one of selection of program locations determined at 'run time'?

Last Updated on Friday, 12 August 2011 10:51 Read more...
 

Converting Binary to ASCII Hex Characters

E-mail Print PDF

Some firmware I've been working on needed a routine to transmit an 8-bit binary value as printable hexadecimal characters via the USART. I came up with the following code.

Last Updated on Tuesday, 07 September 2010 21:22 Read more...
 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  Next 
  •  End 
  • »


Page 1 of 3

Who's Online

We have 3 guests online