Jump to content

jsalisbury

EstablishedMember
  • Content Count

    18
  • Joined

  • Last visited

Community Reputation

0 Neutral

About jsalisbury

  • Rank
    Newbrie
  1. Hi, What are the differences bewteen 6.x and 7.0 and what are the signficant differences to the free microchip compiler? Thanks
  2. DANGER! Risk of DEATH The energy stored in that capacitor will cause death to anyone who touches it, are you sure you are up to the task. The chargeing current is only one of several concerns, how are you going to discharge it? 380 Joules is a lot of energy, more than in some defibulators!
  3. Hi,I am trying to subtract a pointer but I get the error invalide opperand and failed to generate expression at line 244 any idea? Thanks char get_credit (void) { char test_string[]="Your balance is £4.38."; //char *CUSD = "AT+CUSD=1,*#10#"; char *pnd_point; char *dec_point; int length; char cb [5]; //char pnd='£'; //char dec='.'; int credit_pnd; int credit_pence; //puts ("AT+CUSD=1,*#10#"); //gsm_gets (rx_array); strcpy (rx_array,test_string); pnd_point =strchr (rx_array,'£'); dec_point =strchr (rx_array,0x2E); length =(pnd_point - dec_point); // line 244 strncpy
  4. Hi, I am trying to convert the string "Your balance is £4.35." to credit_pound =4 credit_pence = 35 I am trying to use the code below but at compile time I am getting the errors shown at the end, what am I doing wrong? Thanks #include <system.h> #include <stdio.h> #include <icd2.h> #include <string.h> #include "phone.h" #define FIFO_SIZE 128 char rx_array [FIFO_SIZE]; char tx_array [FIFO_SIZE]; char get_credit (void) { //char *CUSD = "AT+CUSD=1,*#10#"; char *pnd_point; char *dec_point; //char pnd='£'; //char dec='.'; int credi
  5. Hi, I wish to use an 18.432 MHz clock and 9600 baud RS232. Could this be updated for the 18F2520 and other fast micros, to take advantage of the autobaud and other features. Thanks
  6. Hi, Could GPIO be avaliable in the LED block in the simulator for the 12F series? Thanks
  7. I am wanting to form a modem control string, I am getting ATD 01234567890; Where I wanted ATD 01234567890 this is the code puts("ATD "); for(counter = 0; counter < number_length ; counter++) putc(phone_number[counter]); where am I going wrong?
  8. Ok Go take your self down to a book store and buy a copy of Designing Imbeded systems with pic microcontrollers by Tim Wilmshurst... ISBN 0-7506-6755-9
  9. Check linker settings and associated .exe as it doesn't seem to be being invoked.Go through the MPLAB integration steps in the BoostC User Reference Manual. Regards Dave It is now sorted I reinstalled both MPLAB and SOURCEBOOST. You might want to check the integration script, MPLAB points to the old linker and there are a couple of other issues.
  10. Please explain again, I don't quite understand your problem. Regards Dave At the moment if I set my pc to 9600, 7 bit no parity and one stop bit (9600,7,n,1) I get a corrupted hello world, which is not even repeatable, hence the string above. BUT the getc putc is working correctly.... I would like both the hello world and the getc putc to work correctly at 9600,8,n,1 I hope this makes it a bit clearer? All sorted once I got my debugger working! it is an overflow issue if you are only runing at 4MHz, cured by useing the hardware uart...
  11. Please explain again, I don't quite understand your problem. Regards Dave At the moment if I set my pc to 9600, 7 bit no parity and one stop bit (9600,7,n,1) I get a corrupted hello world, which is not even repeatable, hence the string above. BUT the getc putc is working correctly.... I would like both the hello world and the getc putc to work correctly at 9600,8,n,1 I hope this makes it a bit clearer?
  12. I am trying to get mplab to build my project so I can make sensible use of my ICD2. When I try to build inside mplab 7.6 I get what is shown below, what would you suggest as starters? Executing: "C:\Program Files\SourceBoost\boostc.pic18.exe" serial_test.c -O1 -W1 -v -t 18F452 BoostC Optimizing C Compiler Version 6.80 (for PIC18 architecture) http://www.sourceboost.com Copyright© 2004-2007 Pavel Baranov Copyright© 2004-2007 David Hobday Licensed to James Salisbury under Single user Full License for 1 node(s) Limitations: PIC18 max code size:Unlimited, max RAM banks:Unlim
  13. Hi, I am trying to get the source boost serial example to work. When I used 9600 7-n-1 the remote copy works fine but the hello world comes back as below when I push reset several times $1667;7:62$3647;7:62$1667;7:60$1667;7:62$1667;7:62$3467;7:62 Where am I going wrong? I would like it to be 9600, 8-n-1 and I would like to use the HW uart. thanks //////////////////////////////////////////////////////////////////////////// // Serial Communications Test Program // // Exercises the serial driver code in <rs232_driver.h> by reading and // writing to the serial p
  14. I would like to be able to see the output of the attached on the IDE terminal. It is set to 9600 and no flow control, where am I going wrong? #include <system.h> // target PIC16F628 //Configuration Bits #pragma DATA _CONFIG, _CP_OFF & _PWRTE_OFF & _BODEN_OFF & _WDT_OFF & _LVP_ON & _MCLRE_OFF & _HS_OSC #define spBAUD 9600 #define FOSC 20000000L #define fSPBCLK (FOSC) /* UART Baud rate generator clock (high speed) */ //#define fSPBCLK (FOSC / 4) /* UART Baud rate generator clock (low speed) */ #define SPBRG_VAL (fSPBCLK / (spBAU
  15. Unless you really are using Low Voltage Programming (very few hobbyists are) you want LVP_OFF Hi, Would like to use this with the teminal within the debuger, how do I see the output in the terminal window?
×
×
  • Create New...