SEROUT Wi-Fi mode


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2017
    Posts
    6

    Default SEROUT Wi-Fi mode

    I am brand new to the Forum. Does anyone know if "SEROUT" wave is formatted to UART or RS232 format, I have been in contact with a Wi-Fi module chip manufacturer with a request of "Do I need to install a MAX232 chip to clean the wave from PicBasic function called "SEROUT", there answer was ""If the device connect to Wi-Fi module is RS232 interface then MAX232 chip is needed but not if UART".
    The Wi-Fi module is 3v3.
    Can anyone help with this question ?
    Attached is the oscilloscope readings from inverted 9600 baud rate and true baud rate, judging by the High/Low voltage's it should have a MAX232 installed Does anyone agree with me?

    Name:  BaudRate_9600_NotInverted.jpg
Views: 2545
Size:  220.6 KBName:  BaudRate_9600_Inverted.jpg
Views: 2624
Size:  219.8 KB

  2. #2
    Join Date
    Mar 2017
    Posts
    6

    Default Re: SEROUT Wi-Fi mode

    If anyone needs the chip id's they are "PIC18F46K20" and the Wi-Fi is "USR-WiFi232 -D2"

  3. #3
    Join Date
    Aug 2011
    Posts
    438

    Default Re: SEROUT Wi-Fi mode

    You need to set your scope to DC coupling, not AC coupling.

    According to the USR datasheet the serial connection is 3V3 uart levels. No MAX232 should be used.
    You should run your pic at 3V3.

  4. #4
    Join Date
    Mar 2017
    Posts
    6

    Default Re: SEROUT Wi-Fi mode

    Thanks TumbleWeed,
    The pic is running 3v3, my concern was that the generated signal from SEROUT was producing the signal in the images, but as you pointed out I set the sensor to DC from AC and the voltage measured 3v3(approx) so the generated neg-cycle was an error of the osciliscope.
    ya only get what you pay for
    So the answer is "SEROUT" produces TTL format

  5. #5
    Join Date
    Dec 2010
    Posts
    409

    Default Re: SEROUT Wi-Fi mode

    First, you need 3.3 V, so using MAX232 is a bad idea. MAX232 has 2 functions; invert the signal and boost the voltage. You do not want a bigger voltage! Run the PIC at 3.3V and you won't have to worry about level shifting.
    If you need an inverted signal, you would simply use an inverter, or tell the PIC to send inverted. A quick check of the manual for PBP will tell you how to get SEROUT to produce TTL or inverted TTL.

  6. #6
    Join Date
    Mar 2017
    Posts
    6

    Default Re: SEROUT Wi-Fi mode

    Hi Charlie,
    Yes the Wi-Fi module needs 3v3 TTL, the Max232 I was looking at was selectable 3v +/- to I think 8v +/- with a threshold voltage of 1v3 to 30v +/-.
    The SEROUT function does produce a perfect square wave @ 3v3 and invertible but totally dependant on the pic used 3v3 verses 5v0 the same as the MAX232 does so that is good enough for me.
    Thanking the forum for this info..

Similar Threads

  1. Sleep Mode
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th March 2008, 10:31
  2. Need help with SLEEP mode
    By aggie007 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 28th November 2007, 09:56
  3. use of ccp mode
    By boboco in forum General
    Replies: 10
    Last Post: - 6th April 2006, 13:58
  4. Sleep mode
    By Tomas in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 29th March 2004, 15:24
  5. Digest mode
    By dcullen7 in forum Forum Requests
    Replies: 0
    Last Post: - 4th July 2003, 12:09

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts