Posted on September 01, 2004 at 21:59Hi Moppie If you are using a simple circuit where the both common connections are connected to a supply and your micro is switching the four coils in turn like this: 1000 0100 0010 0001 you can easily implement h...
Posted on February 23, 2004 at 19:19temp1 & temp2 are both local variables of type char. The line temp2 = *temp1; assumes that temp1 is a char pointer eg its was declared as: char * temp1; Try this: function() { char * temp1 char temp2; temp1 = &arr...
Posted on February 23, 2004 at 17:18Hi Drew function(const unsigned int address, char modifier) { // Note address is now int char * pointer_to_register; pointer_to_register = address; // point pointer at the required register *pointer_to_register = ...
Posted on February 12, 2004 at 18:39Check the initialisation routine used in the .lkf file used by your linker. You need to use crtsi or crtsx instead of crts for automatic initialisation. Eg C:\COSMIC\cxST7\LIB\CRTSi.ST7 works for me. BM