EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / Picbasic pro program to interface compim in proteus not working

Picbasic pro program to interface compim in proteus not working

|

Microcontroller › PIC › Picbasic pro program to interface compim in proteus not working

  • This topic has 1 reply, 2 voices, and was last updated 12 years ago by AJISH ALFRED.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 29, 2014 at 10:32 pm #2833
    Stephanie Hiewobea-Nyarko
    Participant

    Hi all, im building a project using two pic microcontrollers on as a receiver and one as a transmitter.These two microcontrollers are connected wirelessly using xbee.After the receiver pic recieves a signal from the transmitter an alarm is sounded, a message is displayed on the LCD and also a text mesage via a SIM300 GSM MODULE to a phone number.I am using compim to act as xbee and gsm module in proteus.My problem is my pic both have just one serial port,i need two i tried to create a software uart but failed, also how do i know my compim is working well?Can anyone help me out please,,,,
    Below is my code
    Transmitter pic code in pic basic pro
    INCLUDE “modedefs.BAS”
    DEFINE DEBUG_REG PORTB
    DEFINE DEBUG_BIT 6
    DEFINE DEBUG_BAUD 9600
    define DEBUG_MODE 0
    ‘set up adc parameters
    trisB= %00010010
    trisA= %11111111
    S1 VAR PORTB.4
    IF S1=0 THEN
    goto WIRELESS
    WIRELESS:
    HIGH S0
    SEROUT portb.2,T9600,[“1”]
    ENDIF

    Receiver pic code
    INCLUDE “modedefs.BAS”
    DEFINE DEBUG_REG PORTC
    DEFINE DEBUG_BIT 7
    DEFINE DEBUG_BAUD 9600
    define DEBUG_MODE 0
    TRISC=%10000100
    X2 VAR PORTC.7
    SERIN X2,T9600,[ (“1”),rec]
    if (rec == 1) THEN
    SOUND PORTA.0,[100,10,60,15,120,10,73,10,120,10]
    ENDIF

    January 31, 2014 at 4:52 am #10913
    AJISH ALFRED
    Participant

    Hi Steohane,

    Suggest you not to waste your time and restrict yourself on any simulation software. Start doing things in real hardware and you will find N number of debugging methods and solutions to make things work.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Do i need a buffer? February 7, 2026
  • ANOTHER OLD PROJECT REDO February 7, 2026
  • wall transformer polarity February 7, 2026
  • Supply vs performance query February 7, 2026
  • BPF February 7, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise