Jump to content

Moonwalker

EstablishedMember
  • Content count

    30
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Moonwalker

  • Rank
    Regular
  • Birthday 07/17/1976

Profile Information

  • Gender
    Male
  1. Pic 12F638 Bug?

    I have a similar problem on PIC12F629. Here is my code volatile bit Green @ GPIO.GP1; volatile bit Out1 @ GPIO.GP5; ..... ...... while (true) { Green = 1; Out1 = 0; if (signalok() == true) { Green = 0; delay_us(200); Green = 1; delay_us(100); } } The Green pin is being put to 0 after the Out1 = 0. If I swap the lines - first Out1 = 0 then Green=1 then ofcourse Green stays 1. I have tried to use a latch but still did not work gplatch = gpio; gplatch.5 = 0; gpio = gplatch; Any clues please?
  2. No Remaining Ram Block

    Never used unions since they dont look pretty to me. What I have is a char array Mysms and I fill it up with text and numbers using strcpy (first time) and strcat (for the rest). For converting numbers to string I am using uitoa_dec. I am using another array for uitoa_dec and then copying it to mysms array. Maybe I can give uitoa_dec the pointer to the last character of mysms directly? Would that work?
  3. No Remaining Ram Block

    I am using a lot of STRCPY and STRCAT but these also use pointers.
  4. No Remaining Ram Block

    void formattime(int time,char* type) Sorry I am passing pointers as above. My mistake.
  5. Can someone post a detailed procedure how to integrate Sourceboost in MPlab and how to use ICD3 debugger? I have the Pro license so would like to keep using sourceboost. My programs are getting always more complex and manual debugging is taking too long. Hope ICD3 will do the job.
  6. No Remaining Ram Block

    I am passing strings (char arrays) to functions maybe that is where they are used. With the 16F1825 I have 1024 bytes Ram which solved the problem. Useless to go back to 1824 trying to do magic for a few less cents
  7. No Remaining Ram Block

    I have since changed to Pic16F1825 but am still interested to solve the above problem.
  8. No Remaining Ram Block

    Changing mysms to 85 bytes I get the following How can 5 chars take 24 bytes?
  9. bool idle = false; unsigned char blinkcnt; char pin[4]; unsigned int t1on, t1off, t2on, t2off; char out1num[11], out2num[11]; char c1stat, c2stat; bool repcall = true, repsms = true; char mysms[80]; char mobnum[15]; //"+35699998888" \0 I am building a project with Sim900 and so involving strings which are Ram consuming. I am using PIC16F1824. Now with the variables as shown above it compiles ok with the following results PS - there are other variables with char arrays elsewhere in the prog. So there are 46 bytes free in RAM. But when I change mysms to 90 bytes it does not compile with no RAM available error. bool repcall = true, repsms = true; char mysms[90]; char mobnum[15]; //"+35699998888" \0 Any help please?
  10. Is Source boost good for doing a DSPic project?
  11. Thanks again. Yes a test program would be the next step ofcourse. Will let you know how it goes later this week.
  12. Thanks again but I am still strugling to understand how the display Ram is configured. The X address points to the coloumns - so far ok. But the Y address points to Pages 0- 9. What are these pages? As I am understanding it - Starting from X addr 00, I send 8 bit data for the pixels to light in that column, and keep sending data to fill the whole screen? If so what are the pages used for?
  13. Thanks for your help but I did not understand your last sentence. Does it accept character data or only pixel data? The datasheet is not very clear about this. And where can I find the command set for this LCD as it is not listed in the datasheet either.
  14. Thanks Jorge. I have read the datasheet a couple of times but I still cant figure out how to drive it.I am attaching the datasheet maybe someone can give me more details. I would get a smarter GLCD but I have 20 of the Bolymin in hand and would not like to throw them away. PS - Use this link as the file is bigger than 50k limit -- http://sdrv.ms/H58DEM
  15. I need to do some project with a Graphics display. I have the Bolymin BO9864 which uses I2C in hand. I need some help on what approach to use to run the display. Should I have a routine constantly updating the display or I send data only on changes? And do I have to update the whole screen every time or I can change specific locations? Whats the approach to use for writing text on Graphics LCDs? My device is an 18F45 but microchip library for graphics LCD only works with 24F it seems. Any help please?
×