Jump to content

Eric_RO

EstablishedMember
  • Content Count

    14
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Eric_RO

  • Rank
    Newbrie
  1. Ian, I viewed your blog with great interest. I want to thank you for effort. You have touched on some element of programing which I have questions on and others areas which I still need to cover. One area is bootloading and interfacing the PIC using USB, which is only avaiable on my laptop. coverage of this in your future writing woulld be helpful. Also, using a screamer terminal type USB interface with the PIC. Again, thanks for your blog, I know it will be helpfull to alot of others. All the best. Eric RO
  2. cac001, The code on www.electronic-engineering.... site is written in asm. Per Dave's comment on this thread, it looks like it would be a problem to intergrate this asm code into boost C. RSABear, The code I'm working on is a little more complicated and I need to simplify it. I will get it to you when I get it working. Thanks again. All the best, Eric RO
  3. RASBear, Found source of code. www.sourceboost.com/Products/C2C-plus/ExampleCode/ under: ps2 I did not know this location existed. Again thanks for your help. Eric RO
  4. RSABear, I have not seen this code before. There are three #include files needed to use program: LCDTest.c keyblch.h scancod.h I don't have a source for these additional files. If you do let me know. The code I'm working on also uses the LCD files supplied with the sourceboost C compiler. Also, recieved your "My Assistant" contact. I wasn't aware of this method of contact. Thanks for your help. All the best, Eric RO
  5. Dave, Thanks for getting back to us. Questions: 1. Is Sourceboost C assembly code based on MPASM or subset of MPASM? 2. If yes, what version, etc.? 3. If not, whose assembler and where to get user manual? 4. The orignal question in his thread was, are there any PS/2 keyboard header files or source codes written for SourceBoost C compiler? Thanks for your help. All the best, Eric RO
  6. Hi Renard, Thanks for your response. Microchip has written a PS/2 to USB keyboard translator in assembly (MPASM code), which has given me some insite on developing C keyboard code. It's in their TB056 (DS91056C) document and related down-loadable MPASM code file. It was written for the PIC16C765. TB056 document has a PS/2 Keycode table which I used in my work. For SourceBoostc C coding, do you know whose assemby coding they are following and what directives are available. I would like to have the ability to include asm code in with my C code. I did not find any info on this in SourceBoostc documents and on this forum. Maybe I missed something. Agsin thanks for responding. All the best, Eric RO
  7. Hi, I've searched the forum and related links to find if anyone has developed code using BoostC for getting ps/2 keyboard inputs into the PIC. Not finding any, I have started developed code which translates keyboard keyed input to ascii output. Translation table has been worked out. I'm working on code now to taking recieved bytes and getting an ascii byte out. Looking through a book by Nigel Gardner, "PICmicro MCUC" written for the CCS C compiler, the book stated that CCS C has a header file, "conio.h", which has a kbhit() and gets(str) and maybe other functions for keyboard input. Before continuing my code development, it seemed prudent to see if I miss some other code source here on the forum or if other header files or codes files are available. If not, I'm willing to share what I have done so far. All the best, Eric RO Jensen Beach FL USA
  8. Hi, I like getting hex values when using Hover in the dubug mode, as shown in IDE User's Guide. I'm getting octal numbers. Can't find a way to change this. There must be a simple solution. Thanks for anyone help. all the best, Eric RO
  9. Follow-up I removed v6.84 program from my computer, used .exe download as source. I reistalled V6.84 using zip file download. I ran the lcd.c project/program that came setup on IDE when I openned it. The build was successful and ran the simulator using the LCD plugin. I worked. I don't know why the orignal install didn't work. I may have corrupted something in the process of working with it. Now I have a base to work from. JK thanks for all your help. All the best, Eric RO
  10. JK, Thanks for the replies. I did use 16f877 as target in IDE. I had 16f887 on the brain because that is the processor I want to target in my other program. Yesterday I purchase the unlimited lic. and installed the lastest release, v6.84. Are you running this version? Thanks for responding. All the best, Eric RO
  11. Hi, HELP! It must be a simple item I'm not doing. I keep getting this error "???(52): Unterminated conditional" regardless of which program I running. So I loaded the sample program "interrupt.c" from the SourceBoost directory. Still get the same error refering to the line number past the last line in my code. In the Workspace I included the following files: interrupt.c system.h boostc.h BoostCPic16.h libc.16.h p16f877.h Also, the target in the IDE is set as PICF887. Also, I noticed that the program the program doesn't have a #include <p16f887>, is one required? Below is shown the program text and the output box after running the Build routine. thanks to any one who can help. All the best, Eric RO Boostc C program "interrupt.c: //******************************************************************************** ******* // Example code for EZ-Controller available from http://www.sourceboost.com/Products/Products.html // // EXAMPLE CODE TO SHOW HOW TO FLASH A LED // YOU JUST HAVE TO CONNECT A LED TO PORT RB7 THROUGH // A 330R RESISTOR |\ // ______/\ /\ /\ _____| \_________ // RB7 \/ \/ \/ A | / K GND // |/ // // 330R (ORANGE,ORANGE,BROWN) LED // // Code was created by Pavel Baranov and is based // on the original assembly code from Richard Martin // at www.ez-devices.com // //******************************************************************************** ****** #include <system.h> #pragma CLOCK_FREQ 20000000 void interrupt( void ) { latb ^= 128; clear_bit( intcon, T0IF ); //clear TMR0 overflow flag } void main() { trisb &= 127; latb &= 127; // configure Timer0 set_bit( t0con, TMR0ON ); //enable timer clear_bit( t0con, T08BIT ); //set 16-bit mode clear_bit( t0con, T0CS ); // select internal clock clear_bit( t0con, PSA ); // select prescaler set_bit( t0con, T0PS0 ); // set 1:64 prescale ratio clear_bit( t0con, T0PS1 ); set_bit( t0con, T0PS2 ); // enable interrupts set_bit( intcon, TMR0IE ); //enable TMR0 overflow bit set_bit( intcon, GIE ); while( 1 ); //enter infinite loop ; } Output Box: Building... BoostC Optimizing C Compiler Version 6.84 (for PIC16 architecture) http://www.sourceboost.com Copyright© 2004-2007 Pavel Baranov Copyright© 2004-2007 David Hobday Licensed to xxxxxxx under Single user Full License for 1 node(s) Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited, Non commercial use only ..\Samples\C\BoostC\ez\interrupt.c ???(52): Unterminated conditional 1 errors detected failure Error: preprocessing error "C:\Program Files\SourceBoost\boostc.pic16.exe" ..\Samples\C\BoostC\ez\interrupt.c -t PIC16F877 Exit code was 1. Removing target: interrupt.obj Done
  12. Hi, The next pic that I would be migrating to will be the pic18f4550. I'm look to have have a USB port. Also, having the ability to add USB keyboard and other devices. Using laptop without serial serial port for programming. All the best, Eric RO
  13. Dave, Re-install the SourceBoost software package. During the installation make sure you press the integrate into MPLABs button. Regards Dave Reinstalled per your instructions and it works now. Thanks for your response. All the best, Eric RO
  14. I installed SourceBoost IDE first before installing the MPLAB IDE v8.0 a few days later. Following instructions in Boostc manual I did the following: 1. copied files from C:\Program Files\SourceBoost\mplab on my computer, HP running XP, into c:\Program Files\MICROCHIP\MPLAB IDE\Core\MTC Suites. 2. Note: MTC Suites directory was found in the Core directory. New location under MPLAM IDE v8.0? 3. Opened Projects > Set Tool Locations menu and could not find sourcrBoost. Please advise on corrective action. All the best, Eric RO
×
×
  • Create New...