Jump to content

Doglao

EstablishedMember
  • Content Count

    15
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Doglao

  • Rank
    Newbrie
  • Birthday 02/02/1971

Contact Methods

  • MSN
    douglasantosp@hotmail.com
  • Website URL
    http://
  • ICQ
    0

Profile Information

  • Gender
    Male
  • Location
    São Paulo Brazil
  • Interests
    Microcontrollers, embedded systems, c/c++ programming , Qt programming, hardware with pic, work abroad if possible.
  1. Here are some functions that will be added to lcd_driver.h file in the future and a sample program that switches between two sets of user defineable characters, one stored in PIC RAM the other in PIC ROM. These functions may change before they finally get added to lcd_driver.h, but they do work as they are: #include <system.h> #pragma CLOCK_FREQ 40000000 #define LCD_ARGS 1, /* Interface type: mode 0 = 8bit, 1 = 4bit(low nibble), 2 = 4bit(upper nibble) */ \ 1, /* Use busy signal: 1 = use busy, 0 = use time delays */\ PORTC, TRISC, /* Data port and data port tris register */ \
  2. Hi! I make a attempt to create a backslash in a CGRAM display but this not works, my code make use of display driver commands, how I can do this work? thanks lcd_funcmode(); lcd_write(0x40); // set 40 lcd_datamode(); lcd_write( 0x00 ); // 00000 lcd_write( 0X00 ); // 00000 lcd_write( 0X10 ); // 10000 lcd_write( 0X08 ); // 01000 lcd_write( 0X04 ); // 00100 lcd_write( 0X02 ); // 00010 lcd_write( 0X01 ); // 00001 lcd_write( 0X00 ); // 00000 lcd_datamode(); lcd_gotoxy(1,1); lcd_write (0x00);
  3. Hi! I changed the target device to pic16F877A with few changes in the A/D configurations to simulate with SourceBoost IDE using variable PSU to the port A0, this works fine now and I can see how this code works, is very pretty how this tasks running, and how is used the Novo API to handle events, very good example, I understand more about Novo RTOS with this example. thanks Douglas
  4. Hi! Flyer In accordance with the configuration file name novocfg_pic16t5e5ts1.h you re-build it the Novo libraries for 5 tasks, 5 events and the timer size with a one byte, and no priority because the letter P was ommited at the end of file name. I don't see this amount of events in the code and have only 3 tasks, why do you re-compile with this extras tasks and events? is this tasks hidden for us, or you just make this to probe how to re-build libraries? is this file name equal to the configurations within the file? is not missing the function SysSignalSemaphore(hSemaphore) at the start of p
  5. Hi! Flyer I'm very interested to probe your code but I can't simulate it in boostc++, I lead the Signal Generator plugin with the checkbox for DC signal in the porta.0 and nothing change, then, I comment the line Sys_WaitSemaphore(hSemaphore, EVENT_NO_TIMEOUT); to avoid that the task1 goes to break, but nothing work, only changes the hartbeat at task0 and RA1 in the task2. can you simulate with the boostc++ for full debuging your code? thanks
  6. You need to add the appropriate novo library (.lib file) to the project, the right one needs to match the novocfg file that you are including. Regards Dave Thanks Dave! this work fine now!! Douglas
  7. this compile fine, but to linking show this errors. what is need to do this to link? Linking... "D:\Program Files\SourceBoost\boostlink.pic.exe" /ld "D:\Program Files\SourceBoost\lib" libc.pic16.lib novoexemplo1.obj /t PIC16F88 /d D:\proyectos\microcontroladores\boostc++\novo\teste1 /p novoexemplo1 -swcs BoostLink Optimizing Linker Version 6.82 http://www.sourceboost.com Copyright© 2004-2007 Pavel Baranov Copyright© 2004-2007 David Hobday Error: Unresolved external function:'SysiSignalSemaphore(unsigned char)' Error: Unresolved external function:'SysiSignalSemaphor
  8. Hi there! the virtual members of class works fine , but a abstract don't work. what is needed to make this running like a abstract classes? thanks Douglas
  9. thank you a lot Mr. Pavel, this works fine now, but I have to put the struct on inside the union to take the effect that I hope, is this a BoostC++ limitation or a normal behavior of C++ ? #include <i2c_driver.h> /* * * * * * * * * * * * * * * * * * * * * * * i2c hardwareware argumentos da template * * * * * * * * * * * * * * * * * * * * * */ #define i2c_ARGS 3, e_PORT, e_TRIS, 4, e_PORT, e_TRIS, \ e_SSPCON, e_SSPCON2, e_SSPSTAT, e_SSPBUF, \ e_SSPIF, e_PIR2, e_BCLIF, e_PIR2, 7, e_SSPADD,\ (i2c_reset_wdt | i2c_SMP |i2c_HW) // variaveis nano pondem ser passadas como argu
  10. Hi! I make a attempt to put a structure in a class and then shows this error message "missing right brace". are not accepted structures as member of class? thanks! class Cmcp23016{ public: Cmcp23016(); Cmcp23016(int); ~Cmcp23016(); void WriteMcp23016(int iSlaveAddr, int iCommandByte, int iLsb, int iMsb); void LeMcp23016(int iSlaveAddr, int iCommandByte); void config_mcp(int slave); private: int m_iVarGp0;//varialvel do byte baixo do mcp23016 int m_iVarGp1;//varialvel do byte alto do mcp23016 struct DoisBytes{// the message error highlighting this line unsigned ch
  11. thanks for reply! I understand now, very thanks Mr. Pavel! but I have another question about this, when in debugging this code works like nothing occurs with f11 key, treats the function like normal of a object declared,going within the functions members and so on... but it is deleted. is correct this behavior at debug time? I'm sending the code for analizes. thanks. Speaking formally acces of a deleted object leads to unpredicted behaviour. This means that code may work but it also may crash. Going deeper in your particular case when an object is deleted compiler just cleares flag
  12. thanks for reply! I understand now, very thanks Mr. Pavel! but I have another question about this, when in debugging this code works like nothing occurs with f11 key, treats the function like normal of a object declared,going within the functions members and so on... but it is deleted. is correct this behavior at debug time? I'm sending the code for analizes. thanks.
  13. Hi! why do the compiler accept the object "texto" after delete it? should issue a warning or erro message to attempt access a memory that not exist a object ? void main() { //texto.portada_lcd(); while(1){ class Ctexto *texto = new class Ctexto; port.Toggle(); pinB0=0; texto.texto2(); delete texto;//destroy object texto=NULL;// texto.texto2();// forced erro. work fine don't issues erro code or warnings } } thanks Douglas
  14. Hi! I'm new in BoostC++ programation, and I make a attempt put my programs within a class, but when I compile the programa show this mistake erro: too many arguments in function call the function is this delay_us(1); and I make my code in separate file and included in a principal file , and pragma CLOCK_FREQ 4000000 is declared too. what's wrong? thanks!
×
×
  • Create New...