Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by Yodar

  1. Isee, It is mabye foolish to think of me that a USB HID mouse would work the same as a PS/2 Mouse. Maybe a hid mouse could do what a PS/2 mouse can not. I will look into it. thx again for your reply.
  2. Ok thx, this is the advice I was looking for. Only... Just after i posted this message I came to the conlusion that a pointing device/mouse could not accomplish mij wishes. Im afraid my project will become a bit more difficult. Basicly what i want is to send to mouse cursor of a computer desktop to some fixed X and Y coordination. The problem with a mouse is, that a mouse device only sends the distance it has moved since it last sended package. Im afraid ill have to write some computer program first which is capeble of setting the fixed X and Y coordinations of the mouse cursor. And
  3. Hey, I'am currently at the first steps of creating a pic mouse/pointing device with a PIC16 microcontroller. As interface i want to use ps/2. But before I start i have a few questions. I have read the following article http://www.computer-engineering.org/ps2protocol/ Am i correct? when i say, I can use Uart without a problem for this project? And my next obvious question, is there anyone who has created a pic mouse device before? And can share some tips and maybe even some code? Thx in advance, Yod
  4. hey, has been some time since i asked this question. thx for all the replys. this will surely be helpfull. Thx!
  5. Hia boosters, I want to connect 2 servo's on my pic 16f877. But when i use the formula described in the datasheet my lowest possible freq will be somewhere around 480hz and i need something close to 50hz. Am I doing something wrong or isnt it just possible ? or does some1 knows a better chips for driving two servo's ?? with kind regards yod
  6. Hey joni, it does work. At first i tried the code and got errors as you described. But than i took another look a the for loop. The loop init more data than present and and therefor it looked the above described error ocured. So you might want to check your for lus again
  7. Is it possible to store a data which will never change in the flash rom by using an array ? if so, how ? piece yod
  8. Fuse bits are verry import, u suggest you read the datasheet about them. for example if you enable the watchdog, sure in this case it works. But with another program it wont. This fusebit makes your program to reset everytime after a while. This happens if the bit isnt cleared in your sourcecode.
  9. So the Single User Standard boostC license Limitations are PIC16 4k code, PIC18 8k code but you can use all RAM banks ?
  10. After waiting 30 secs+ the msg arrives. Les hope that the new version arrives soon.
  11. I have tried multiple projects and it crashes at all projects. Toolsuite C2C compiles fine btw.
  12. Hey I have worked all day with boostC yesterday. Today i wanted to continue but the program crashes when i try to compile. This happens on multiple computers.
  13. Hey thx for your reply. I tried the program and i even configured so that it should be able to program the chip. Tho before i wanted to use it for my 18f2515 I tried testing the program with a 16f873a. No luck verify errors and havnt found the solution for the problem yet. Anyway if found another great software programmer so if one needs one give this a try http://siscobf.webcindario.com/winpic800.htm This works with the serial tait and lotsa 18f devices.
  14. Hey, Im looking for a program like ic prog which is able to program the target 18f2515. The program must also be free and work with a tait serial programmer. thx in advance
  15. ok add adcon1 = 00000110b; //set porta digital outputs and all is fine. tho i also tried it with portb and had the same problem but maybe something else was wrong anyway i will test again for portb.
  16. Since i use boostC i have some problems setting and clearing bits. the problem is when i set a bit in a register it seems to clear all other bit. i just want to set a simple bit for example porta. #include <system.h> #pragma CLOCK_FREQ 8000000 void main() { trisa=0; porta=0; while(1) { set_bit( porta, 0 ); //bit1 set_bit( porta, 1 ); //bit2 delay_s(1); clear_bit( porta, 0 ); //bit1 clear_bit( porta, 1 ); //bit2 delay_s(1); } } so i would expect porta = 00000001 porta = 00000011 delay porta = 00000010 porta = 00000000 delay but in my target a 16f877a i only se
  17. First off i hope im saying something usefull but i think the problem is that, first you use a method set_bit(portb, Relay); which is created so that you give the decimal number for the bit you want to set. the second time it is a bit diffrent if ((portb & S_R) == 0) { // reset the value for S_R will not be decimal as before but it wil be binary. Or i should say, Your macro in the first example is decimal and in the if example its binary. That makes sense cuz decimal 4 is binary 100 and is bit 2 and decimal 8 is 1000 and is bit 3. you might want to use #defi
  18. first off all, when a interrupt is triggered a jump is made to certain place in the memory (right ?) which in sourceboost starts at: void interrupt( void ) { } so the code in the brackets is executed, "make sure to clear the flag bit or else it will stay in the interrupt" a simple program for TMR0 and input on pin change(GPIE) should somehow look like: #include <system.h> void interrupt( void ) { if((intcon & T0IF) !=0)//overflow bit T0IF set ? yes than TMR0 interrupt happened { //add code clear_bit( INTCON, T0IF ); //clear TMR0 overflow flag
  19. ok stupid me trisa =1; should be trisa = 00000100b;
  20. I’m trying to use the voltage reference but it seems that I have no luck, I am sure I am doing something wrong but I cant see what. The voltage on pin ra2 is always 0V #include <system.h> #pragma CLOCK_FREQ 4000000 main() { trisa = 1; // trisa<2> bit should be set according to datasheet page 68 set_bit( vrcon, VREN );//enable Voltage ref set_bit( vrcon, VROE );//output on pin RA2 enabled set_bit( vrcon, VRR );//low range selection set_bit( vrcon, VR3 );//vref selection bit set_bit( vrcon, VR2 );//vref selection bit set_bit( vrcon, VR1 );//vref selection bit
  21. ok i will give i a try, thx. Ive read in an other post to go clear all the interupt flags first but als that did nit work.
  22. i made a nice simple pwm signal wich is able to have multiple output and if im not mistaken you can have a much pins as you want, i use 3 pins and it works great w/o having an external clock: #define rood output_low_port_b(3) #define groen output_low_port_b(1) #define blauw output_low_port_b(2) #define ruit output_high_port_b(3) #define guit output_high_port_b(1) #define buit output_high_port_b(2) void rgb(int r, int g, int b) { for (freq = 200; freq > 0; freq--) { if(r > 0) {rood; r=r-1;} else{ruit;} if(g > 0) {groen; g=g-1;} else{guit;} if(b > 0) {blauw;
  23. Im experimenting with the change on pin4/7 interupt. my problem is that the interupt gets triggered at initialization. i guess im doing something wrong ? but i dont see any solution. btw i use a pic16f628a. my code is: #include <system.h> #pragma CLOCK_FREQ 4000000 #define rood output_low_port_b(3) #define groen output_low_port_b(1) #define blauw output_low_port_b(2) #define ruit output_high_port_b(3) #define guit output_high_port_b(1) #define buit output_high_port_b(2) #define uit portb=2+4+8 #define aan portb=0 char option@0x0; unsigned int r=0; unsigned int g=0
  24. Yup thx, i figured it. for winpic the line in my case is C:\DOCUME~1\Yod\Desktop\winpic\WinPic.exe /p / device=%target% /config_word=3f10 /q with the /p //for program with the / device=%target% //targets the pic in winpic with the /config_word=3f10 //options configured in winpic with the /q //quits the program I hope some1 find use of this Yod
  25. I have no idea how to add an external programmer. i use ic-prog and or winpic so what should the command line be ? C:\DOCUME~1\Yod\Desktop\winpic\WinPic.exe -????????????????- i have used the search button but could not find anything Many thx Yod
  • Create New...