Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8048243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:22:18+00:00 2026-06-05T06:22:18+00:00

I have a project in which I am trying to send data from an

  • 0

I have a project in which I am trying to send data from an android phone to a pic18f4525 through a bluetooth device. Currently, I am just trying to get the pic to recognize simple letters like an ‘A’.

From what I understand, when the pic receives the data through PORTC.7 (RX pin), it will store the 8-bit information into the RCREG register and then I all have to do is read the data. I know the pic is receiving the data as the receive flag is being set. Also, I hooked a scope to the receive pin of the pic and it is receiving the correct 01 sequences.

My question is, how do i read the RCREG register to access the information? From what I can tell, I can just use ReadUSART from usart.h however this header file will not compile for me so I am trying to access this data without that header file. Is there a way to do this? I have tried just storing the data directly (i.e. value = RCREG) and I can ‘read’ the register (the receive flag gets reset so I know I’m reading it) but the pic always thinks the value is 0xFF no matter what I send.

I am using MPLAB version 8.85, with the ICD2, and the CC8E compiler. Any help as to how read the data would be greatly appreciated. I have also completely read the data sheet for using usart on the pic, read through the compiler manual, and did many searches on this topic to no avail.

Thanks for your help.

Update:

DONE!!! After another few hours of messing around with it I finally got it to work. It was in fact a baud rate issue. Thank you for all your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T06:22:19+00:00Added an answer on June 5, 2026 at 6:22 am

    What you are doing should work. This sounds like a baud rate mismatch (somehow you may have neglected to set the BRG register or miscalculated the value that goes in it.) I would try writing to TXREG, triggering a write on the TX pin that you can catch on a scope and verify that the actual baud rate is the same as what is coming in on RX.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rather enormous project in which I'm trying to retrofit in-memory data.
For a project, I'm trying to send UDP packets from Linux kernel-space. I'm currently
I have a VS2010 project which is a windows application that acquires data from
I have a project which I am trying to use in another new project,
I have a VB project which I'm trying to configure with three build configurations.
I have been trying to use querydsl in a project which is an osgi
I have a project of about 7000 files, of which I'm trying to add
I have a date import project in which the clients send ANSI-latin1 encoded files
The project I have been given is to store and retrieve unstructured data from
I have a flex .swf and a seperate AIR project which I'm trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.