please i need help in a project

Discussion in 'Embedded Systems and Microcontrollers' started by kbibi99, Apr 19, 2012.

  1. kbibi99

    Thread Starter New Member

    Apr 19, 2012
    9
    0
    Hello,
    I did a project in IT industry.
    I created a software with vb.net 8 and an electronic circuit based on PIC 16F877
    which is programmed with micropascal and the program is included in the attachments with a simulation With isis 7.7 but this project does not work
    please help me
    sorry for the language

     
  2. kbibi99

    Thread Starter New Member

    Apr 19, 2012
    9
    0
    please i need help
    :(
     
  3. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,884
    1,001
    People will help you if they can and when they have time. People are not going to help you if you don't want to help yourself.

    "Does not work" doesn't tell anyone anything. You are going to have to provide a lot more details of what in your code is not working and what problems you are seeing.

    No one is going to unzip your project and start debugging it. Most people don't even have isis 7.7.

    Please provide FULL details of your issue.
     
  4. panic mode

    Senior Member

    Oct 10, 2011
    1,320
    304
    suppose you see post:
    " i did home project using material from hardware store but it does not work. please help..."

    what can you do to offer help? do you see any problem? think about it.

    now ask yourself what programs everyone else has. do you think EVERYONE uses micropascal and proteus? probably not. most of people are going to see clutter of 28 files that they don't know what to do with. would you like me to post reply using binary files generated by RSLogix, and EPlan? i don't think so...

    so if you want help, you need to help us. when you post some files, post the essentials and in a form that everyone can see. for example "cds.mpas" can be read by notepad or better - you should have posted it directyl in the message body using CODE tag. your schematic and PCB should be posted as images. nobody will have problem viewing standard image file.

    other thing is description. what is your project supposed to do? "I did a project in IT industry" is actually wrong statement. you didn't finish it, you are still working on it.

    your exe file crashes after displaying image of siren. your cds.mpas file tristates bunch of ports, including port B. do you know what tristate means?
     
  5. kbibi99

    Thread Starter New Member

    Apr 19, 2012
    9
    0
    i'm sorry
    i'm a new member in this forum and i don't know how i post a thread
    ok this is the source in micropascal

    and this is 2 functions in VB 8 the first is for connection RS232
    and the second is to compare the time entered by the user with the computer's time and are equal if it sends data to the microcontrollers to enable portb

     
  6. kbibi99

    Thread Starter New Member

    Apr 19, 2012
    9
    0
    this is a simulation with a virtualport com

    [​IMG][​IMG]
     
  7. kbibi99

    Thread Starter New Member

    Apr 19, 2012
    9
    0

    you must have a serial port com for eliminate the crash
     
  8. panic mode

    Senior Member

    Oct 10, 2011
    1,320
    304
    which part does not work?

    i would use nulmodem and terminal to verify that VB app can send and receive data. I don't speak French but if I understand screenshots, it looks like you did just that and you can send and receive single character but I don't know what was on the other end of connection (PIC or VB?).
    I am guessing it is VB because terminal seem to emulate PIC responses.

    Can you do the same with PIC? I suspect problem may be here...

    Btw, where in your Pascal code you specify PIC16F877 as target?

    You still didn't answer about configuration of the ports. I have no experience with PIC16F877 but it does not look like portC is configured for USART (RC6 and RC7 are Tx/Rx of the PIC).

    what exactly does following line:
    Code ( (Unknown Language)):
    1.  
    2. UART1_Init(9600); // Initialize UART module at 9600 bps
    3.  
    i can see baud rate but nothing else (parity, data bits, stop bits) but does it configure port C for USART as well?
     
  9. panic mode

    Senior Member

    Oct 10, 2011
    1,320
    304
    that is not very good. i didn't even try to select port or establish connection. even if i did, it still should not crash, it should trap the error and display a message or something. perhaps this is meant to come later?
     
    Last edited: Apr 20, 2012
  10. kbibi99

    Thread Starter New Member

    Apr 19, 2012
    9
    0

    UART1_Init Configures and initializes the UART module.
    The internal UART module module is set to:

    • receiver enabled
    • transmitter enabled
    • frame size 8 bits
    • 1 STOP bit
    • parity mode disabled
    • asynchronous operation

     
  11. kbibi99

    Thread Starter New Member

    Apr 19, 2012
    9
    0
    This is the schema of the circuit

    [​IMG]
     
  12. kbibi99

    Thread Starter New Member

    Apr 19, 2012
    9
    0
    have you verified that the program vb Can Send and Receive data?
     
  13. kbibi99

    Thread Starter New Member

    Apr 19, 2012
    9
    0
    no one wants to help me?
    :(
     
Loading...